Skip to content

Commit 5249172

Browse files
committed
typedef sa_family_t for cygwin.
1 parent 94468c6 commit 5249172

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/include/libpq/pqcomm.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
12-
* $Id: pqcomm.h,v 1.87 2003/06/23 23:51:59 momjian Exp $
12+
* $Id: pqcomm.h,v 1.88 2003/06/24 01:49:22 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -47,6 +47,10 @@
4747
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (sa_family_t) + \
4848
_SS_PAD1SIZE + _SS_ALIGNSIZE))
4949

50+
#ifdef __CYGWIN__
51+
typedef unsigned short sa_family_t;
52+
#endif
53+
5054
struct sockaddr_storage {
5155
#ifdef SALEN
5256
uint8_t __ss_len; /* address length */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy