File: 15_kfreebsd.patch

package info (click to toggle)
gamin 0.1.10-5
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 3,784 kB
  • ctags: 1,921
  • sloc: ansic: 10,675; sh: 8,915; python: 3,706; xml: 1,303; makefile: 319; awk: 48
file content (16 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix build failure on GNU/kFreeBSD
Bug: http://bugzilla.gnome.org/show_bug.cgi?id=588337
Bug-Debian: http://bugs.debian.org/434141

diff -Naur gamin-0.1.9/libgamin/gam_data.c gamin-0.1.9.new/libgamin/gam_data.c
--- gamin-0.1.9/libgamin/gam_data.c	2007-07-04 15:36:48.000000000 +0200
+++ gamin-0.1.9.new/libgamin/gam_data.c	2007-10-07 13:41:58.000000000 +0200
@@ -470,7 +470,7 @@
     }
     if (is_threaded > 0) {
 	pthread_mutexattr_init(&attr);
-#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP)
+#if defined(__GLIBC__)
 	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
 #else
 	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);