To: Ilya Zakharevich <ilya@math.ohio-state.edu>
Cc: gsar@engin.umich.edu (Gurusamy Sarathy), jhi@iki.fi,
perl5-porters@perl.org
(UNINSTALLED)
Message-Id: <
9811082119.AA11802@icgned.icgroup.nl>
p4raw-id: //depot/cfgperl@2225
# endif
#ifdef I_MACH_CTHREADS
-#undef MUTEX_LOCK
-#define MUTEX_LOCK(m) STMT_START { if (*m) mutex_lock(*m); } STMT_END
-#undef MUTEX_UNLOCK
-#define MUTEX_UNLOCK(m) STMT_START { if (*m) mutex_unlock(*m); } STMT_END
+# undef MUTEX_LOCK
+# define MUTEX_LOCK(m) STMT_START { if (*m) mutex_lock(*m); } STMT_END
+# undef MUTEX_UNLOCK
+# define MUTEX_UNLOCK(m) STMT_START { if (*m) mutex_unlock(*m); } STMT_END
#endif
static char *emergency_buffer;
# else
# ifdef I_MACH_CTHREADS
# include <mach/cthreads.h>
+# ifdef NeXT
+# define MUTEX_INIT_CALLS_MALLOC
+# endif
typedef cthread_t perl_os_thread;
typedef mutex_t perl_mutex;
typedef condition_t perl_cond;
#endif
#ifdef MYMALLOC
-# ifdef I_MACH_CTHREADS
+# ifdef MUTEX_INIT_CALLS_MALLOC
# define MALLOC_INIT \
STMT_START { \
PL_malloc_mutex = NULL; \