From: Gurusamy Sarathy Date: Sat, 28 Nov 1998 12:41:55 +0000 (+0000) Subject: fix MALLOC_LOCK #define X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=64f996d11396e48ec2347b5997a70034d1ca0a38;p=p5sagit%2Fp5-mst-13.2.git fix MALLOC_LOCK #define p4raw-id: //depot/perl@2341 --- diff --git a/malloc.c b/malloc.c index ba4aac2..add79bb 100644 --- a/malloc.c +++ b/malloc.c @@ -141,8 +141,8 @@ warn(format, arg) fprintf(stderr, idem) # Locking/unlocking for MT operation - MALLOC_LOCK MUTEX_LOCK(PL_malloc_mutex) - MALLOC_UNLOCK MUTEX_UNLOCK(PL_malloc_mutex) + MALLOC_LOCK MUTEX_LOCK(&PL_malloc_mutex) + MALLOC_UNLOCK MUTEX_UNLOCK(&PL_malloc_mutex) # Locking/unlocking mutex for MT operation MUTEX_LOCK(l) void @@ -278,11 +278,11 @@ #endif #ifndef MALLOC_LOCK -# define MALLOC_LOCK MUTEX_LOCK(PL_malloc_mutex) +# define MALLOC_LOCK MUTEX_LOCK(&PL_malloc_mutex) #endif #ifndef MALLOC_UNLOCK -# define MALLOC_UNLOCK MUTEX_UNLOCK(PL_malloc_mutex) +# define MALLOC_UNLOCK MUTEX_UNLOCK(&PL_malloc_mutex) #endif #ifdef DEBUGGING