1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-23 03:21:12 +03:00

Allow win32 client compiles with MSC.

Hiroshi Saito
This commit is contained in:
Bruce Momjian
2003-10-26 04:29:15 +00:00
parent 2cd5abd4d1
commit b80b384b78
3 changed files with 17 additions and 5 deletions

View File

@ -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