]> code.citadel.org Git - citadel.git/blobdiff - citadel/userlist.c
fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / userlist.c
index 5354722a7728c3604023e1fe9b67565e26ae0995..bd59f04a582cf1f4cef04f742065eafa7740339a 100644 (file)
@@ -9,7 +9,18 @@
 #include <unistd.h>
 #include <stdio.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"
 #include <unistd.h>
 #include "ipc.h"