aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/darwin/system.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-11-08 20:14:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-11-08 20:14:51 +0000
commit153e83027de3ff7497829b4e91476828446e6928 (patch)
tree8d882b3d94fe6c2115926314e777f2fa4667b86e /src/backend/port/darwin/system.c
parent87758314ca2719f20839169cef7e934e1b9a0600 (diff)
downloadpostgresql-153e83027de3ff7497829b4e91476828446e6928.tar.gz
postgresql-153e83027de3ff7497829b4e91476828446e6928.zip
Don't need hack copy of system() anymore in OS X 10.3.
Diffstat (limited to 'src/backend/port/darwin/system.c')
-rw-r--r--src/backend/port/darwin/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/port/darwin/system.c b/src/backend/port/darwin/system.c
index a0c0801f2ab..50fa32a2656 100644
--- a/src/backend/port/darwin/system.c
+++ b/src/backend/port/darwin/system.c
@@ -1,3 +1,7 @@
+/* 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
* The Regents of the University of California. All rights reserved.
@@ -97,3 +101,5 @@ system(const char *command)
(void) sigprocmask(SIG_SETMASK, &oldsigblock, NULL);
return (pid == -1 ? -1 : pstat);
}
+
+#endif /* OS X < 10.3 */