X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/c13ac0be4e632012a2344baecc513dfb99811ccd..a9aaacca3a68bb8d74fec09d8d8681a0efda2581:/stdlib/FreeBSD/system.c diff --git a/stdlib/FreeBSD/system.c b/stdlib/FreeBSD/system.c index 61ef03c..8ab1eca 100644 --- a/stdlib/FreeBSD/system.c +++ b/stdlib/FreeBSD/system.c @@ -27,6 +27,9 @@ * SUCH DAMAGE. */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" + #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)system.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ @@ -54,7 +57,9 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/system.c,v 1.11 2007/01/09 00:28:10 imp #if __DARWIN_UNIX03 #include +#if !(TARGET_OS_IPHONE && (TARGET_OS_SIMULATOR || !TARGET_OS_IOS)) static pthread_mutex_t __systemfn_mutex = PTHREAD_MUTEX_INITIALIZER; +#endif extern int __unix_conforming; #endif /* __DARWIN_UNIX03 */ @@ -154,3 +159,5 @@ __system(command) __weak_reference(__system, system); __weak_reference(__system, _system); + +#pragma clang diagnostic pop