diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/libpq/ip.c | 6 | ||||
-rw-r--r-- | src/backend/utils/mb/encnames.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/backend/libpq/ip.c b/src/backend/libpq/ip.c index 59bee56e212..d4290476c83 100644 --- a/src/backend/libpq/ip.c +++ b/src/backend/libpq/ip.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.12 2003/06/12 07:36:51 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.13 2003/06/12 08:02:53 momjian Exp $ * * This file and the IPV6 implementation were initially provided by * Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design @@ -20,6 +20,8 @@ /* This is intended to be used in both frontend and backend, so use c.h */ #include "c.h" +#if !defined(_MSC_VER) && !defined(__BORLANDC__) + #include <errno.h> #include <unistd.h> #include <sys/types.h> @@ -33,6 +35,8 @@ #include <arpa/inet.h> #include <sys/file.h> +#endif + #include "libpq/ip.h" diff --git a/src/backend/utils/mb/encnames.c b/src/backend/utils/mb/encnames.c index fcb88f156c7..33082dc6984 100644 --- a/src/backend/utils/mb/encnames.c +++ b/src/backend/utils/mb/encnames.c @@ -2,7 +2,7 @@ * Encoding names and routines for work with it. All * in this file is shared bedween FE and BE. * - * $Id: encnames.c,v 1.13 2003/05/15 16:35:29 momjian Exp $ + * $Id: encnames.c,v 1.14 2003/06/12 08:02:53 momjian Exp $ */ #ifdef FRONTEND #include "postgres_fe.h" @@ -13,7 +13,9 @@ #include "utils/builtins.h" #endif +#if !defined(_MSC_VER) && !defined(__BORLANDC__) #include <unistd.h> +#endif #include "mb/pg_wchar.h" #include <ctype.h> |