8.0.0b1 cygwin problems - Mailing list pgsql-bugs

From Reini Urban
Subject 8.0.0b1 cygwin problems
Date
Msg-id 412B89F0.3090904@x-ray.at
Whole thread Raw
List pgsql-bugs
I haven't tested this with mingw or MSVC but the default cygwin layout
needs the attached header changes.

pending problems:

src/timezone has a configure problem
pgtz.c:105:2: #error No way to determine TZ? Can this happen?

PGAC_VAR_INT_TIMEZONE return no for cygwin, but our time.h has this:
   extern __IMPORT time_t _timezone;
which is from newlib.
I truly mistrust PGAC_VAR_INT_TIMEZONE in config/c-library.m4

Right now the gcc-3.4.1 build for cygwin is in experimental status, we
will see what will change then. So far we only have gcc-3.3.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--- postgresql-8.0.0beta1/src/port/dirmod.c.orig    2004-08-08 07:44:36.000000000 +0100
+++ postgresql-8.0.0beta1/src/port/dirmod.c    2004-08-24 19:20:56.557435000 +0100
@@ -33,16 +33,28 @@


 #include "miscadmin.h"
+
+#ifdef __CYGWIN__
+#include <windows.h>
+#include <w32api/winioctl.h>
+#else
 #include <winioctl.h>
+#undef unlink
+#endif

 #undef rename
-#undef unlink

+/* 2004-08-24 20:20:54 rurban: There are no pgport_palloc versions yet */
+#if 0
 #ifndef FRONTEND
+#undef palloc
+#undef pstrdup
+#undef pfree
 #define palloc(sz)        pgport_palloc(sz)
 #define pstrdup(str)    pgport_pstrdup(str)
 #define pfree(pointer)    pgport_pfree(pointer)
 #endif
+#endif


 /*

pgsql-bugs by date:

Previous
From: Steffen Macke
Date:
Subject: Inconsistent pg_ctl behaviour: start vs. runservice
Next
From: Oliver Elphick
Date:
Subject: Re: Inheritance and constraints duplicate values