Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
153e8302
Commit
153e8302
authored
Nov 08, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't need hack copy of system() anymore in OS X 10.3.
parent
87758314
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/backend/port/darwin/README
src/backend/port/darwin/README
+5
-0
src/backend/port/darwin/system.c
src/backend/port/darwin/system.c
+6
-0
No files found.
src/backend/port/darwin/README
View file @
153e8302
...
@@ -24,3 +24,8 @@ port/SUBSYS.o definition of _system in section (__TEXT,__text)
...
@@ -24,3 +24,8 @@ port/SUBSYS.o definition of _system in section (__TEXT,__text)
/usr/lib/libm.dylib(system.o) unused definition of _system
/usr/lib/libm.dylib(system.o) unused definition of _system
These are due to overriding system() per the above-described hack.
These are due to overriding system() per the above-described hack.
The bug appears to be repaired in OS X 10.2.6 and later (possibly in
earlier 10.2.* as well, but no systems handy to check). We #ifdef out
the substitute system() definition on 10.3 and later.
src/backend/port/darwin/system.c
View file @
153e8302
/* only needed in OS X 10.1 and possibly early 10.2 releases */
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 || !defined(MAC_OS_X_VERSION_10_2)
/*
/*
* Copyright (c) 1988, 1993
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
* The Regents of the University of California. All rights reserved.
...
@@ -97,3 +101,5 @@ system(const char *command)
...
@@ -97,3 +101,5 @@ system(const char *command)
(
void
)
sigprocmask
(
SIG_SETMASK
,
&
oldsigblock
,
NULL
);
(
void
)
sigprocmask
(
SIG_SETMASK
,
&
oldsigblock
,
NULL
);
return
(
pid
==
-
1
?
-
1
:
pstat
);
return
(
pid
==
-
1
?
-
1
:
pstat
);
}
}
#endif
/* OS X < 10.3 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment