diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-10-26 04:29:15 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-10-26 04:29:15 +0000 |
commit | b80b384b788481a10609881a449aa5f7929cec8d (patch) | |
tree | 9dcf0bb749cf9c44f6804532ddf9ea81502a5fb5 /src/port/thread.c | |
parent | 2cd5abd4d1e6aa5b32c9911c8e8e83aded9454a4 (diff) |
Allow win32 client compiles with MSC.
Hiroshi Saito
Diffstat (limited to 'src/port/thread.c')
-rw-r--r-- | src/port/thread.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/port/thread.c b/src/port/thread.c index a37a0ed4fd9..c77c5586bba 100644 --- a/src/port/thread.c +++ b/src/port/thread.c @@ -7,19 +7,23 @@ * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * - * $Id: thread.c,v 1.11 2003/10/24 20:48:10 momjian Exp $ + * $Id: thread.c,v 1.12 2003/10/26 04:29:15 momjian Exp $ * *------------------------------------------------------------------------- */ #include "postgres.h" +#include <sys/types.h> +#include <errno.h> +#if defined(WIN32) && defined(_MSC_VER) +#undef ERROR +#else +#include <pwd.h> +#endif #if defined(USE_THREADS) #include <pthread.h> #endif -#include <sys/types.h> -#include <pwd.h> -#include <errno.h> /* * Threading sometimes requires specially-named versions of functions |