mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Allow Win32 to compile under MinGW. Major changes are:
Win32 port is now called 'win32' rather than 'win'
add -lwsock32 on Win32
make gethostname() be only used when kerberos4 is enabled
use /port/getopt.c
new /port/opendir.c routines
disable GUC unix_socket_group on Win32
convert some keywords.c symbols to KEYWORD_P to prevent conflict
create new FCNTL_NONBLOCK macro to turn off socket blocking
create new /include/port.h file that has /port prototypes, move
out of c.h
new /include/port/win32_include dir to hold missing include files
work around ERROR being defined in Win32 includes
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: elog.h,v 1.41 2003/04/24 21:16:44 tgl Exp $
|
||||
* $Id: elog.h,v 1.42 2003/05/15 16:35:29 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -35,6 +35,15 @@
|
||||
#define WARNING 19 /* Warnings */
|
||||
#define ERROR 20 /* user error - abort transaction; return
|
||||
* to known state */
|
||||
#define ERROR 20 /* user error - abort transaction; return
|
||||
* to known state */
|
||||
/* Save ERROR value in PGERROR so it can bve restored when Win32 includes
|
||||
* modify it. We have to use a constant rather than ERROR because macros
|
||||
* are expanded only when referenced outside macros.
|
||||
*/
|
||||
#ifdef WIN32
|
||||
#define PGERROR 20
|
||||
#endif
|
||||
#define FATAL 21 /* fatal error - abort process */
|
||||
#define PANIC 22 /* take down the other backends with me */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user