+#include "pgtz.h"\r
+#undef open\r
+#define timezone pg_timezone\r
+#define USG_COMPAT\r
+extern time_t pg_timezone;\r
/*\r
** This file is in the public domain, so clarified as of\r
static char elsieid[] = "@(#)zic.c 7.115";\r
+#include "pgtz.h"\r
+#undef unlink\r
+#undef TZDIR\r
+#define TZDIR "data"\r
+#ifdef WIN32\r
+#include \r
+#endif\r
\r
#include "private.h"\r
#include "locale.h"\r
#if HAVE_SYS_STAT_H\r
#include "sys/stat.h"\r
#endif\r
+#ifndef WIN32\r
#ifdef S_IRUSR\r
#define MKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)\r
#else\r
#define MKDIR_UMASK 0755\r
#endif\r
+#endif\r
\r
/*\r
** On some ancient hosts, predicates like `isspace(C)' are defined\r
/*\r
** UNIX was a registered trademark of The Open Group in 2003.\r
*/\r
+\r
+\r
+#ifdef WIN32\r
+/*\r
+ * To run on win32 \r
+ */\r
+int link(const char *oldpath, const char *newpath) {\r
+ if (!CopyFileEx(oldpath, newpath, NULL, NULL, FALSE, 0)) {\r
+ return -1;\r
+ }\r
+ return 0;\r
+}\r
+#endif\r