OK, patch applied to typedef sa_family_t for cygwin. If other platforms
need it, I will have to do something more generic.
Thanks for the testing. Block removed, though I did have that ISP
marked as cronic, so there must have been a bunch of spam from there,
not just a few.
---------------------------------------------------------------------------
deststar wrote:
> I still seem to get a compile problem (included below).
> Will double check tomorrow when not so tired (02:15 here).
> Cheers,
> - Stuart
> P.S. My server seems to be blacklisted as a spam server by you. Please
> could you white list me.
>
> gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../../../src/i
> nclude -DBUILDING_DLL -c -o printtup.o printtup.c -MMD
> In file included from ../../../../src/include/libpq/libpq-be.h:22,
> from ../../../../src/include/libpq/libpq.h:21,
> from printtup.c:20:
> ../../../../src/include/libpq/pqcomm.h:54: parse error before "sa_family_t"
> ../../../../src/include/libpq/pqcomm.h:54: warning: no semicolon at end
> of struc
> t or union
> ../../../../src/include/libpq/pqcomm.h:56: `sa_family_t' undeclared here
> (not in
> a function)
> ../../../../src/include/libpq/pqcomm.h:63: `sa_family_t' undeclared here
> (not in
> a function)
> ../../../../src/include/libpq/pqcomm.h:63: `sa_family_t' undeclared here
> (not in
> a function)
> ../../../../src/include/libpq/pqcomm.h:67: parse error before '}' token
> ../../../../src/include/libpq/pqcomm.h:77: field `addr' has incomplete type
> ../../../../src/include/libpq/pqcomm.h:79: confused by earlier errors,
> bailing o
> ut
> make[4]: *** [printtup.o] Error 1
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Index: src/include/libpq/pqcomm.h
===================================================================
RCS file: /cvsroot/pgsql-server/src/include/libpq/pqcomm.h,v
retrieving revision 1.87
diff -c -c -r1.87 pqcomm.h
*** src/include/libpq/pqcomm.h 23 Jun 2003 23:51:59 -0000 1.87
--- src/include/libpq/pqcomm.h 24 Jun 2003 01:48:40 -0000
***************
*** 47,52 ****
--- 47,56 ----
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (sa_family_t) + \
_SS_PAD1SIZE + _SS_ALIGNSIZE))
+ #ifdef __CYGWIN__
+ typedef unsigned short sa_family_t;
+ #endif
+
struct sockaddr_storage {
#ifdef SALEN
uint8_t __ss_len; /* address length */