1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Add configure check for sys_nerr, to end all discussions.

This commit is contained in:
Peter Eisentraut
2001-01-09 18:40:15 +00:00
parent af26d6a4a2
commit c3f9371956
9 changed files with 110 additions and 71 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.32 2000/10/28 23:53:00 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.33 2001/01/09 18:40:14 petere Exp $
*
* NOTE
* XXX this code needs improvement--check for state violations and
@@ -96,10 +96,6 @@ EnableExceptionHandling(bool on)
extern int errno;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern int sys_nerr;
static void
ExcPrint(Exception *excP,
@@ -131,7 +127,7 @@ ExcPrint(Exception *excP,
fprintf(stderr, " (%ld)", detail);
#ifndef __BEOS__
#ifdef HAVE_SYS_NERR
if (errno > 0 && errno < sys_nerr)
#else
if (errno > 0)