From 662dcde178c69e7f6a839fa09871d2607361514e Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 1 Jun 2009 21:30:44 -0500 Subject: [PATCH] fix Darwin compilation. --- packages/PLStream/pl-os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/PLStream/pl-os.c b/packages/PLStream/pl-os.c index d3492b403..ebe83a46e 100644 --- a/packages/PLStream/pl-os.c +++ b/packages/PLStream/pl-os.c @@ -2368,7 +2368,7 @@ findExecutable(const char *av0, char *buffer) return NULL; file = Which(buf, tmp); -#if __unix__ /* argv[0] can be an #! script! */ +#if __unix__ || __APPLE__ /* argv[0] can be an #! script! */ if ( file ) { int n, fd; char buf[MAXPATHLEN]; @@ -2403,7 +2403,7 @@ findExecutable(const char *av0, char *buffer) #endif /*__WINDOWS__*/ -#ifdef __unix__ +#if __unix__ || __APPLE__ static char * okToExec(const char *s) { struct stat stbuff;