File: 010_build-on-kFreeBSD.patch

package info (click to toggle)
zthreads 2.3.2-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,532 kB
  • sloc: sh: 8,432; cpp: 6,032; ansic: 126; makefile: 109; javascript: 6
file content (24 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: fix build failure on kfreebsd*
Bug-Debian: https://bugs.debian.org/622173
Bug-Ubuntu: https://bugs.launchpad.net/hugin/+bug/684357
Author: Andreas Metzler <ametzler@debian.org>
Last-Update: 2011-04-10
Index: zthreads/include/zthread/Config.h
===================================================================
--- zthreads.orig/include/zthread/Config.h
+++ zthreads/include/zthread/Config.h
@@ -107,11 +107,13 @@
 #  define ZT_POSIX
 
 // Check for well known platforms
+// __GLIBC__ matches GNU/kFreeBSD.
 #elif defined(__linux__) || \
       defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
       defined(__hpux) || \
       defined(__sgi) || \
-      defined(__sun)
+      defined(__sun) || \
+      defined(__GLIBC__)
 
 #  define ZT_POSIX