From 33a9d0232ee7ad769a22ffa0bbfe7252bafe39f9 Mon Sep 17 00:00:00 2001 From: "colin%theblakes.com" Date: Fri, 16 Mar 2001 21:39:49 +0000 Subject: [PATCH] Fix OpenVMS build breakage b=71990 r=danm sr=blizzard a=leaf git-svn-id: svn://10.0.0.236/trunk@89717 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/threads/plevent.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/mozilla/xpcom/threads/plevent.c b/mozilla/xpcom/threads/plevent.c index 935b60e1e2a..94169042f73 100644 --- a/mozilla/xpcom/threads/plevent.c +++ b/mozilla/xpcom/threads/plevent.c @@ -99,10 +99,12 @@ struct PLEventQueue { EventQueueType type; PRPackedBool processingEvents; PRPackedBool notified; +#if defined(XP_UNIX) #if defined(VMS) int efn; -#elif defined(XP_UNIX) +#else PRInt32 eventPipe[2]; +#endif PLGetEventIDFunc idFunc; void *idFuncClosure; #elif defined(_WIN32) || defined(WIN16) || defined(XP_OS2) @@ -722,15 +724,15 @@ _pl_SetupNativeNotifier(PLEventQueue* self) #endif #if defined(VMS) - { - unsigned int status; - status = LIB$GET_EF(&self->efn); - if (!$VMS_STATUS_SUCCESS(status)) - return PR_FAILURE; - PR_LOG(event_lm, PR_LOG_DEBUG, - ("$$$ Allocated event flag %d", self->efn)); - return PR_SUCCESS; - } + unsigned int status; + self->idFunc = 0; + self->idFuncClosure = 0; + status = LIB$GET_EF(&self->efn); + if (!$VMS_STATUS_SUCCESS(status)) + return PR_FAILURE; + PR_LOG(event_lm, PR_LOG_DEBUG, + ("$$$ Allocated event flag %d", self->efn)); + return PR_SUCCESS; #elif defined(XP_UNIX) int err; int flags;