Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
52dda5ec
Commit
52dda5ec
authored
24 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Cygwin uses _sys_nerr for sys_nerr
parent
5f18e218
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/utils/error/elog.c
+5
-1
5 additions, 1 deletion
src/backend/utils/error/elog.c
src/backend/utils/error/exc.c
+10
-6
10 additions, 6 deletions
src/backend/utils/error/exc.c
with
15 additions
and
7 deletions
src/backend/utils/error/elog.c
+
5
−
1
View file @
52dda5ec
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.6
1
2000/0
6
/2
8 0
3:3
2
:2
7 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.6
2
2000/0
9
/2
9 1
3:3
5
:2
6 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -38,6 +38,10 @@
#include
"commands/copy.h"
extern
int
errno
;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern
int
sys_nerr
;
extern
CommandDest
whereToSendOutput
;
...
...
This diff is collapsed.
Click to expand it.
src/backend/utils/error/exc.c
+
10
−
6
View file @
52dda5ec
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.
29
2000/0
1
/2
6 05:57:20 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.
30
2000/0
9
/2
9 13:35:26 petere
Exp $
*
* NOTE
* XXX this code needs improvement--check for state violations and
...
...
@@ -16,10 +16,10 @@
*
*-------------------------------------------------------------------------
*/
#include
<errno.h>
#include
"postgres.h"
#include
<errno.h>
#include
"storage/ipc.h"
#include
"utils/exc.h"
...
...
@@ -94,15 +94,19 @@ EnableExceptionHandling(bool on)
ExceptionHandlingEnabled
=
on
;
}
extern
int
errno
;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern
int
sys_nerr
;
static
void
ExcPrint
(
Exception
*
excP
,
ExcDetail
detail
,
ExcData
data
,
ExcMessage
message
)
{
extern
int
errno
;
extern
int
sys_nerr
;
#ifdef lint
data
=
data
;
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment