summaryrefslogtreecommitdiff
path: root/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers/xorg-server-snap/files/patch-FreeBSD.cf')
-rw-r--r--x11-servers/xorg-server-snap/files/patch-FreeBSD.cf80
1 files changed, 35 insertions, 45 deletions
diff --git a/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf b/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf
index c0139fdbeec7..391afe1b7cae 100644
--- a/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf
+++ b/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf
@@ -1,54 +1,44 @@
---- config/cf/FreeBSD.cf.orig Fri Apr 2 13:47:10 2004
-+++ config/cf/FreeBSD.cf Fri May 7 17:32:47 2004
-@@ -109,7 +109,7 @@
- # endif
- # define HasPosixThreads YES
- # define ThreadedX YES
--# define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE
-+# define SystemMTDefines FreeBSDPTHREAD_CFLAGS
- /*
- * FreeBSD has tread-safe api but no getpwnam_r yet.
- */
-@@ -119,9 +119,8 @@
- # else
- # define MTSafeAPIDefines -DXUSE_MTSAFE_API
+--- config/cf/FreeBSD.cf.orig Sat Aug 14 17:03:36 2004
++++ config/cf/FreeBSD.cf Sat Sep 11 15:18:01 2004
+@@ -78,6 +78,7 @@
+ #define HasIssetugid YES
+ #define HasPoll YES
+ #endif
++#define BuildHtmlManPages NO
+
+ #if OSMajorVersion >= 4
+ #define HasGetIfAddrs YES
+@@ -117,14 +118,8 @@
+ # if (OSRelVersion < 500043)
+ # define NeedUIThrStubs YES
# endif
--# if HasLibPthread
+-# if (OSRelVersion >= 502102)
-# define ThreadsLibraries -lpthread
+-# elif (OSRelVersion >= 500016)
+-# define ThreadsLibraries -lc_r
-# else
+-# define ThreadsLibraries -pthread
+-# endif
+-# define SystemMTDefines -D_THREAD_SAFE
+# define ThreadsLibraries FreeBSDPTHREAD_LIBS
-+# if !HasLibPthread
- # if OSRelVersion >= 500043
- # define BuildThreadStubLibrary NO
- # define NeedUIThrStubs NO
-@@ -130,10 +129,7 @@
- # define NeedUIThrStubs YES
- # endif
- # if (OSRelVersion >= 500016)
--# define ThreadsLibraries -lc_r
- # define SharedGLReqs $(LDPRELIBS) $(XLIB) -lc
--# else
--# define ThreadsLibraries -pthread
- # endif
- # define SharedX11Reqs $(LDPRELIB) $(XTHRSTUBLIB)
- # define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB) $(XTHRSTUBLIB)
-@@ -192,11 +188,11 @@
- * ld: warning: libXThrStub.so.6, needed by libX11.so, not found
- */
- #if BuildThreadStubLibrary && (!defined(UseInstalledX11) || !UseInstalledX11)
--# define CcCmd $(CLIENTENVSETUP) cc
--# define CplusplusCmd $(CLIENTENVSETUP) c++
-+# define CcCmd $(CLIENTENVSETUP) FreeBSDCC
-+# define CplusplusCmd $(CLIENTENVSETUP) FreeBSDCXX
- #else
--# define CcCmd cc
--# define CplusplusCmd c++
-+# define CcCmd FreeBSDCC
-+# define CplusplusCmd FreeBSDCXX
++# define SystemMTDefines FreeBSDPTHREAD_CFLAGS
+ #endif
+
+ /* This fixes linking C programs against libGLU on FreeBSD 3.x */
+@@ -173,10 +168,10 @@
#endif
+ #ifndef CcCmd
+-#define CcCmd cc
++#define CcCmd FreeBSDCC
+ #endif
+ #ifndef CplusplusCmd
+-#define CplusplusCmd c++
++#define CplusplusCmd FreeBSDCXX
+ #endif
#define CppCmd /usr/bin/cpp
-@@ -359,7 +355,7 @@
+ #define PreProcessCmd CppCmd
+@@ -338,7 +333,7 @@
#ifndef LibraryRpathLoadFlags
# if UseRpath
# if UseElfFormat
@@ -57,7 +47,7 @@
# else
# define LibraryRpathLoadFlags -R $(USRLIBDIRPATH)
# endif
-@@ -452,18 +450,8 @@
+@@ -463,18 +458,8 @@
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif