diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-06-07 22:24:46 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-06-07 22:24:46 +0000 |
commit | 399a36a75d2d06bfdb91402713d408271b4833ba (patch) | |
tree | b8391f6bda4680d37ac430c3270c67bde979d842 /src/port/thread.c | |
parent | 877e296306a2017a18fc7086e9742c8ee3e0a665 (diff) |
Prepare code to be built by MSVC:
o remove many WIN32_CLIENT_ONLY defines
o add WIN32_ONLY_COMPILER define
o add 3rd argument to open() for portability
o add include/port/win32_msvc directory for
system includes
Magnus Hagander
Diffstat (limited to 'src/port/thread.c')
-rw-r--r-- | src/port/thread.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/port/thread.c b/src/port/thread.c index ed6e48a4e7b..def2fcfa1da 100644 --- a/src/port/thread.c +++ b/src/port/thread.c @@ -7,19 +7,15 @@ * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/port/thread.c,v 1.32 2006/03/05 15:59:10 momjian Exp $ + * $PostgreSQL: pgsql/src/port/thread.c,v 1.33 2006/06/07 22:24:46 momjian Exp $ * *------------------------------------------------------------------------- */ #include "c.h" -#ifdef WIN32_CLIENT_ONLY -#undef ERROR -#else #include <pwd.h> -#endif -#if defined(ENABLE_THREAD_SAFETY) +#if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) #include <pthread.h> #endif |