From 09f4810b768025f5fb23230dcd81a1862e02757f Mon Sep 17 00:00:00 2001 From: ubu32 Date: Mon, 14 Feb 2011 06:51:28 -0800 Subject: [PATCH] __APPLE__ is __unix__:w --- packages/PLStream/pl-os.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/PLStream/pl-os.c b/packages/PLStream/pl-os.c index a178359b9..b7d286bc2 100755 --- a/packages/PLStream/pl-os.c +++ b/packages/PLStream/pl-os.c @@ -192,7 +192,7 @@ OsError(void) #else /*HAVE_STRERROR*/ static char errmsg[64]; -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) extern int sys_nerr; #if !EMX extern char *sys_errlist[]; @@ -630,7 +630,7 @@ TemporaryFile(const char *id, int *fdp) } retry: -#ifdef __unix__ +#if defined(_unix__) || defined(__APPLE__) { static int MTOK_temp_counter = 0; const char *sep = id[0] ? "_" : ""; @@ -2274,7 +2274,7 @@ Unsetenv(char *name) an alternative. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) #define SPECIFIC_SYSTEM 1 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2482,7 +2482,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];