Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit153e830

Browse files
committed
Don't need hack copy of system() anymore in OS X 10.3.
1 parent8775831 commit153e830

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+
#ifMAC_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)

[8]ページ先頭

©2009-2025 Movatter.jp