]> code.citadel.org Git - citadel.git/blobdiff - citadel/netmailer.c
fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / netmailer.c
index 874e21761078c0429504dabbcc81e232a893faed..69309c5118c19e5c5e8f9cef1c9af169accd370d 100644 (file)
@@ -8,7 +8,18 @@
 #include <unistd.h>
 #include <stdio.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 <string.h>
 #include <ctype.h>
 #include <limits.h>