]> code.citadel.org Git - citadel.git/blobdiff - citadel/genstamp.c
- port to Cygwin (DLL support, etc.)
[citadel.git] / citadel / genstamp.c
index 1ca2752cd6f2d4527dee237807137cfed3cb9a2c..ce9575559059b3965dec7ee042e8f9f271ee1b04 100644 (file)
@@ -5,11 +5,26 @@
  *
  */
 
+#ifdef DLL_EXPORT
+#define IN_LIBCIT
+#endif
+
 #include <stdio.h>
 #include <stdlib.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 "genstamp.h"