typedef sa_family_t for cygwin.
authorBruce Momjian <bruce@momjian.us>
Tue, 24 Jun 2003 01:49:22 +0000 (01:49 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 24 Jun 2003 01:49:22 +0000 (01:49 +0000)
src/include/libpq/pqcomm.h

index a11c30ca3bb44b28e152219bcc484bcaf2b525c4..0ed84ca22f717ee77b6d258e61361410cf83ca33 100644 (file)
@@ -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 $
  *
  *-------------------------------------------------------------------------
  */
 #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 */