]> code.citadel.org Git - citadel.git/blobdiff - citadel/client_chat.c
fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / client_chat.c
index c30cd66994b54b163883f67e41a7d34cda0bd898..49418a5d26bc190b93e0b1c58d89155b052c1065 100644 (file)
 #include <string.h>
 #include <signal.h>
 #include <errno.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 <sys/types.h>
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>