More explicit use of #if HAVE_...header's.
[yaz-moved-to-github.git] / src / log.c
index 47464fe..40baf7f 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -16,7 +16,9 @@
 #include <windows.h>
 #endif
 
+#if HAVE_SYS_STAT_H
 #include <sys/stat.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>