File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.61 2000/06/28 03:32:27 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.62 2000/09/29 13:35:26 petere Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
38
38
#include "commands/copy.h"
39
39
40
40
extern int errno ;
41
+
42
+ #ifdef __CYGWIN__
43
+ # define sys_nerr _sys_nerr
44
+ #endif
41
45
extern int sys_nerr ;
42
46
43
47
extern CommandDest whereToSendOutput ;
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.29 2000/01/26 05:57:20 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.30 2000/09/29 13:35:26 petere Exp $
12
12
*
13
13
* NOTE
14
14
* XXX this code needs improvement--check for state violations and
15
15
* XXX reset after handling an exception.
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
19
- #include <errno.h>
20
-
21
19
#include "postgres.h"
22
20
21
+ #include <errno.h>
22
+
23
23
#include "storage/ipc.h"
24
24
#include "utils/exc.h"
25
25
@@ -94,15 +94,19 @@ EnableExceptionHandling(bool on)
94
94
ExceptionHandlingEnabled = on ;
95
95
}
96
96
97
+
98
+ extern int errno ;
99
+ #ifdef __CYGWIN__
100
+ # define sys_nerr _sys_nerr
101
+ #endif
102
+ extern int sys_nerr ;
103
+
97
104
static void
98
105
ExcPrint (Exception * excP ,
99
106
ExcDetail detail ,
100
107
ExcData data ,
101
108
ExcMessage message )
102
109
{
103
- extern int errno ;
104
- extern int sys_nerr ;
105
-
106
110
#ifdef lint
107
111
data = data ;
108
112
#endif
You can’t perform that action at this time.
0 commit comments