aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4-libraries/files/patch-xthreads
blob: ea2e2e15f62b0b291cd0be7167e03552c2f39b15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- config/cf/FreeBSD.cf.orig   Thu Jun  7 16:33:37 2001
+++ config/cf/FreeBSD.cf    Thu Jun  7 16:34:43 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