On cygwin sa_family_t was undeclared, adding the following line:
typedef unsigned short sa_family_t;
to both:
src/port/getaddrinfo.c
src/include/libpq/pqcomm.h
seemed to compile ok but with make check there was one regression
failure in test privileges (doesn't look realted, but I'm not sure).
Also included for ease of testing is a patch sepratly sent to patches
for ecpg.
System: Athalon + Win 2k + cygwin 1.3.22 + gcc 3.2
*** ./expected/privileges.out Wed May 14 04:26:04 2003
--- ./results/privileges.out Sun Jun 15 16:12:34 2003
***************
*** 10,18 ****
--- 10,22 ----
CREATE GROUP regressgroup1;
CREATE GROUP regressgroup2 WITH USER regressuser1, regressuser2;
ALTER GROUP regressgroup1 ADD USER regressuser4;
+ WARNING: AbortTransaction and not in in-progress state
+ ERROR: rename /home/Administrator/pgcvs/pgsql/src/test/regress/./tmp_check/data/global/pg_group.2284 to
/home/Administrator/pgcvs/pgsql/src/test/regress/./tmp_check/data/global/pg_group:Permission denied
ALTER GROUP regressgroup2 ADD USER regressuser2; -- duplicate
WARNING: ALTER GROUP: user "regressuser2" is already in group "regressgroup2"
ALTER GROUP regressgroup2 DROP USER regressuser2;
+ WARNING: AbortTransaction and not in in-progress state
+ ERROR: rename /home/Administrator/pgcvs/pgsql/src/test/regress/./tmp_check/data/global/pg_group.2284 to
/home/Administrator/pgcvs/pgsql/src/test/regress/./tmp_check/data/global/pg_group:Permission denied
ALTER GROUP regressgroup2 ADD USER regressuser4;
-- test owner privileges
SET SESSION AUTHORIZATION regressuser1;
======================================================================
*** src/interfaces/ecpg/compatlib/Makefile.orig Thu May 22 18:20:44 2003
--- src/interfaces/ecpg/compatlib/Makefile Sun Jun 15 15:45:34 2003
***************
*** 17,23 ****
SO_MINOR_VERSION= 0.0
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
! SHLIB_LINK = -L../pgtypeslib -lpgtypes
OBJS= informix.o
--- 17,23 ----
SO_MINOR_VERSION= 0.0
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
! SHLIB_LINK = -L../pgtypeslib -lpgtypes -L../ecpglib -lecpg
OBJS= informix.o