提交 52dda5ec 编写于 作者: P Peter Eisentraut

Cygwin uses _sys_nerr for sys_nerr

上级 5f18e218
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.61 2000/06/28 03:32:27 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.62 2000/09/29 13:35:26 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
#include "commands/copy.h" #include "commands/copy.h"
extern int errno; extern int errno;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern int sys_nerr; extern int sys_nerr;
extern CommandDest whereToSendOutput; extern CommandDest whereToSendOutput;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.29 2000/01/26 05:57:20 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.30 2000/09/29 13:35:26 petere Exp $
* *
* NOTE * NOTE
* XXX this code needs improvement--check for state violations and * XXX this code needs improvement--check for state violations and
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <errno.h>
#include "postgres.h" #include "postgres.h"
#include <errno.h>
#include "storage/ipc.h" #include "storage/ipc.h"
#include "utils/exc.h" #include "utils/exc.h"
...@@ -94,15 +94,19 @@ EnableExceptionHandling(bool on) ...@@ -94,15 +94,19 @@ EnableExceptionHandling(bool on)
ExceptionHandlingEnabled = on; ExceptionHandlingEnabled = on;
} }
extern int errno;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern int sys_nerr;
static void static void
ExcPrint(Exception *excP, ExcPrint(Exception *excP,
ExcDetail detail, ExcDetail detail,
ExcData data, ExcData data,
ExcMessage message) ExcMessage message)
{ {
extern int errno;
extern int sys_nerr;
#ifdef lint #ifdef lint
data = data; data = data;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册