25 lines
821 B
Text
25 lines
821 B
Text
--- cf/FreeBSD.cf.orig Thu Jun 7 16:25:47 2001
|
|
+++ cf/FreeBSD.cf Thu Jun 7 16:28:30 2001
|
|
@@ -80,7 +80,6 @@
|
|
/*
|
|
* math.h uses _REENTRANT and stdio.h uses _THREAD_SAFE, so define both.
|
|
*/
|
|
-# define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE
|
|
/*
|
|
* FreeBSD has tread-safe api but no getpwnam_r yet.
|
|
*/
|
|
@@ -91,8 +90,12 @@
|
|
# else
|
|
# define BuildThreadStubLibrary YES
|
|
# define NeedUIThrStubs YES
|
|
-# define ThreadsCompileFlags -pthread
|
|
-# define ThreadsLibraries -pthread
|
|
+# if (OSRelVersion >= 500016)
|
|
+# define ThreadsLibraries -lc_r
|
|
+# else
|
|
+# define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE
|
|
+# define ThreadsLibraries -pthread
|
|
+# endif
|
|
# define SharedX11Reqs $(LDPRELIB) $(XTHRSTUBLIB)
|
|
# define SharedXtReqs $(LDPRELIB) $(XLIBONLY) $(SMLIB) $(ICELIB) $(XTHRSTUBLIB)
|
|
# endif
|