Include sys/socket.h, arpa/inet.h
[yaz-moved-to-github.git] / src / log.c
index 47464fe..e063725 100644 (file)
--- a/src/log.c
+++ b/src/log.c
 
 #ifdef WIN32
 #include <windows.h>
+#include <sys/stat.h>
 #endif
 
+#if HAVE_SYS_STAT_H
 #include <sys/stat.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>