mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04:00
Cygwin uses _sys_nerr for sys_nerr
This commit is contained in:
parent
5f18e2183e
commit
52dda5ec05
@ -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 @@
|
|||||||
#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 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* 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 @@
|
|||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#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)
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user