summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2002-02-05 10:30:58 +0000
committerArtur Bergman <sky@nanisky.com>2002-02-05 10:30:58 +0000
commit4f8ddd771cda27533f4680b572d765b063e03e11 (patch)
treee853c3dd28601693b7ad1674fc5c19024426804e /perl.h
parent6fecce66bf5da93daf0d8b2ef8093422a24df6a3 (diff)
downloadperl-4f8ddd771cda27533f4680b572d765b063e03e11.tar.gz
Enable building with threads under macosx, assume __APPLE__ means darwin and disable _r functions, since we don't have them.
p4raw-id: //depot/perl@14557
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 4d9a94edc5..cc451b60fb 100644
--- a/perl.h
+++ b/perl.h
@@ -330,7 +330,7 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
/* Use the reentrant APIs like localtime_r and getpwent_r */
/* Win32 has naturally threadsafe libraries, no need to use any _r variants. */
-#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) && !defined(WIN32)
+#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) && !defined(WIN32) && !defined(__APPLE__)
# define USE_REENTRANT_API
#endif