Change 14557 by sky@sky-tibook on 2002/02/05 10:30:58
Enable building with threads under macosx, assume __APPLE__ means darwin and
disable _r functions, since we don't have them.
Affected files ...
.... //depot/perl/hints/darwin.sh#20 edit
.... //depot/perl/perl.h#440 edit
Differences ...
==== //depot/perl/hints/darwin.sh#20 (text) ====
Index: perl/hints/darwin.sh
--- perl/hints/darwin.sh.~1~ Tue Feb 5 03:45:05 2002
+++ perl/hints/darwin.sh Tue Feb 5 03:45:05 2002
@@ -81,7 +81,10 @@
# cppflags='-traditional-cpp';
# avoid Apple's cpp precompiler, better for extensions
cppflags="${cppflags} -no-cpp-precomp"
+# and ccflags needs them aswell since we don't use cpp directly
+ccflags="${ccflags} -no-cpp-precomp"
+
# Shared library extension is .dylib.
# Bundle extension is .bundle.
ld='cc';
@@ -133,9 +136,13 @@
*define*)
cat <<EOM >&4
-*** You do not have threadsafe libraries, I cannot use threads.
-*** Cannot continue, aborting.
+*** Warning, there might be problems with your libraries with
+*** regards to threading.
+
EOM
- exit 1
+#*** You do not have threadsafe libraries, I cannot use threads.
+#*** Cannot continue, aborting.
+#EOM
+# exit 1
;;
esac
==== //depot/perl/perl.h#440 (text) ====
Index: perl/perl.h
--- perl/perl.h.~1~ Tue Feb 5 03:45:05 2002
+++ perl/perl.h Tue Feb 5 03:45:05 2002
@@ -330,7 +330,7 @@
/* 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
End of Patch.