[BUGS] 8.0.0b1 cygwin problems -
08-24-2004
, 02:42 PM
This is a multi-part message in MIME format.
--------------050506010307010709020607
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
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/
--------------050506010307010709020607
Content-Type: text/plain;
name="postgresql-8.0.0beta1-dirmode.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="postgresql-8.0.0beta1-dirmode.diff"
--- 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
/*
--------------050506010307010709020607
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
--------------050506010307010709020607-- |