diff options
Diffstat (limited to 'src/include/libpq/pqcomm.h')
-rw-r--r-- | src/include/libpq/pqcomm.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index a9bb120552d..e3b5a71b837 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; |