#endif
#include <sys/types.h>
#include <sys/stat.h>
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include "pazpar2_config.h"
#include "settings.h"
#include "eventl.h"
}
else
{
- if (S_ISREG(st.st_mode))
+ if ((st.st_mode & S_IFMT) == S_IFREG)
{
xmlDoc *doc = xmlParseFile(path);
yaz_log(YLOG_LOG, "processing include path=%s", path);