fix all the <time.h> vs. <sys/time.h> issues, hopefully
[citadel.git] / citadel / user_ops.c
index ec7888c278dcaf9e329e05b8ffbdf7db57d05db9..ce4b0b33e4ed0657ea0627b4164c7f5ba45a0d88 100644 (file)
 #include <pwd.h>
 #include <sys/types.h>
 #include <sys/wait.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 <string.h>
 #include <syslog.h>
 #include <limits.h>