diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-06-24 01:49:22 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-06-24 01:49:22 +0000 |
commit | 5249172e1f32460f67ac25cdca04a0867c6a4dcd (patch) | |
tree | 56a9f0cdbc1c66741d85748543c19391138ba6f0 /src | |
parent | 94468c6f04d304c8ca333b21f79acbd8f4fd499e (diff) | |
download | postgresql-5249172e1f32460f67ac25cdca04a0867c6a4dcd.tar.gz postgresql-5249172e1f32460f67ac25cdca04a0867c6a4dcd.zip |
typedef sa_family_t for cygwin.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/libpq/pqcomm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index a11c30ca3bb..0ed84ca22f7 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.h,v 1.87 2003/06/23 23:51:59 momjian Exp $ + * $Id: pqcomm.h,v 1.88 2003/06/24 01:49:22 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -47,6 +47,10 @@ #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 */ |