From ddf0d675a408ea6aab94a0ab16cb0412642d1365 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 9 Sep 2009 15:23:04 +0200 Subject: [PATCH] Windows port fixes --- src/pazpar2_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 24f4c86..3e2290e 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -46,7 +46,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif #include #include +#if HAVE_UNISTD_H #include +#endif #include "pazpar2_config.h" #include "settings.h" #include "eventl.h" @@ -751,7 +753,7 @@ static int config_include_one(struct conf_config *config, xmlNode **sib, } 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); -- 1.7.10.4