Skip to content

Commit 153e830

Browse files
committed
Don't need hack copy of system() anymore in OS X 10.3.
1 parent 8775831 commit 153e830

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/backend/port/darwin/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ port/SUBSYS.o definition of _system in section (__TEXT,__text)
2424
/usr/lib/libm.dylib(system.o) unused definition of _system
2525

2626
These are due to overriding system() per the above-described hack.
27+
28+
29+
The bug appears to be repaired in OS X 10.2.6 and later (possibly in
30+
earlier 10.2.* as well, but no systems handy to check). We #ifdef out
31+
the substitute system() definition on 10.3 and later.

src/backend/port/darwin/system.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* only needed in OS X 10.1 and possibly early 10.2 releases */
2+
#include <AvailabilityMacros.h>
3+
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 || !defined(MAC_OS_X_VERSION_10_2)
4+
15
/*
26
* Copyright (c) 1988, 1993
37
* The Regents of the University of California. All rights reserved.
@@ -97,3 +101,5 @@ system(const char *command)
97101
(void) sigprocmask(SIG_SETMASK, &oldsigblock, NULL);
98102
return (pid == -1 ? -1 : pstat);
99103
}
104+
105+
#endif /* OS X < 10.3 */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy