mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
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
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user