*
*/
+#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"
t = localtime(&xtime);
/* Convert "seconds west of GMT" to "hours/minutes offset" */
+#ifdef HAVE_STRUCT_TM_TM_GMTOFF
+ offset = t->tm_gmtoff;
+#else
offset = timezone;
+#endif
if (offset > 0) {
offsign = '-';
}