]> code.citadel.org Git - citadel.git/blobdiff - citadel/stats.c
fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / stats.c
index c940c054d1b58de1a6571853fdacfb85fc60b336..9ed10c33e58ebaff8759ddc9a7f656b9cbc6ca6a 100644 (file)
@@ -8,7 +8,18 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <time.h>
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
+
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>