]> code.citadel.org Git - citadel.git/blobdiff - citadel/rcit.c
fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / rcit.c
index c594d6c973cb7de9b8cbf6cff1643337c8909651..c34b0769343fb8e02ed4d740ac6de1a02c773717 100644 (file)
 #include <stdio.h>
 #include <ctype.h>
 #include <string.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 "citadel.h"
 
 void get_config(void);