]> code.citadel.org Git - citadel.git/blobdiff - citadel/messages.c
fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / messages.c
index 1cd168ad59d9616765f0500d0c838da67684dd7c..6167a8378dd96d97cd8963d372d1ed5a8e621cf8 100644 (file)
 #include <limits.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
-#include <sys/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 <stdarg.h>
 #include "citadel.h"
 #include "messages.h"