diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/c.h | 4 | ||||
| -rw-r--r-- | src/include/libpq/pqcomm.h | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h index 65eb4266ae..3d7c08ddd4 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.43 1998/08/25 21:04:41 scrappy Exp $ + * $Id: c.h,v 1.44 1998/08/29 04:05:41 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -133,7 +133,9 @@ typedef char *Pointer; * Example: * extern const Version RomVersion; */ +#ifndef WIN32 #define const /* const */ +#endif /* * signed -- diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index a9bb120552..e3b5a71b83 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.h,v 1.27 1998/08/22 04:24:18 momjian Exp $ + * $Id: pqcomm.h,v 1.28 1998/08/29 04:05:43 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,20 +15,25 @@ #include <stdio.h> #include <sys/types.h> +#ifdef WIN32 +#include <winsock.h> +#else #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> +#endif #include "c.h" - /* Define a generic socket address type. */ typedef union SockAddr { struct sockaddr sa; struct sockaddr_in in; +#ifndef WIN32 struct sockaddr_un un; +#endif } SockAddr; |
