From cef4c0c62d9937e22a9184f3e8e3187b56dc2707 Mon Sep 17 00:00:00 2001 From: "larryh%netscape.com" Date: Wed, 2 Aug 2000 00:45:18 +0000 Subject: [PATCH] BugZilla: 4090. cross platform breakage --- nsprpub/pr/src/io/prfile.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nsprpub/pr/src/io/prfile.c b/nsprpub/pr/src/io/prfile.c index 0be4bfd1e94..f8983c4d3ab 100644 --- a/nsprpub/pr/src/io/prfile.c +++ b/nsprpub/pr/src/io/prfile.c @@ -357,9 +357,7 @@ PR_IMPLEMENT(PRFileDesc*) PR_Open(const char *name, PRIntn flags, PRIntn mode) { PRInt32 osfd; PRFileDesc *fd = 0; -#if defined(XP_UNIX) /* BugZilla: 4090 */ - PRBool appendMode = PR_FALSE; -#else +#if !defined(XP_UNIX) /* BugZilla: 4090 */ PRBool appendMode = ( PR_APPEND & flags )? PR_TRUE : PR_FALSE; #endif @@ -373,7 +371,9 @@ PR_IMPLEMENT(PRFileDesc*) PR_Open(const char *name, PRIntn flags, PRIntn mode) if (!fd) { (void) _PR_MD_CLOSE_FILE(osfd); } else { +#if !defined(XP_UNIX) /* BugZilla: 4090 */ fd->secret->appendMode = appendMode; +#endif _PR_MD_INIT_FD_INHERITABLE(fd, PR_FALSE); } } @@ -385,9 +385,7 @@ PR_IMPLEMENT(PRFileDesc*) PR_OpenFile( { PRInt32 osfd; PRFileDesc *fd = 0; -#if defined(XP_UNIX) /* BugZilla: 4090 */ - PRBool appendMode = PR_FALSE; -#else +#if !defined(XP_UNIX) /* BugZilla: 4090 */ PRBool appendMode = ( PR_APPEND & flags )? PR_TRUE : PR_FALSE; #endif @@ -401,7 +399,9 @@ PR_IMPLEMENT(PRFileDesc*) PR_OpenFile( if (!fd) { (void) _PR_MD_CLOSE_FILE(osfd); } else { +#if !defined(XP_UNIX) /* BugZilla: 4090 */ fd->secret->appendMode = appendMode; +#endif _PR_MD_INIT_FD_INHERITABLE(fd, PR_FALSE); } }