summaryrefslogtreecommitdiff
path: root/devel/xulrunner192/patches/patch-aq
blob: fc0c402801492f2c20f2cabfd471a359b8ddb371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-aq,v 1.1.1.1 2011/04/19 11:16:08 tnn Exp $

--- media/liboggplay/src/liboggplay/std_semaphore.h.orig	2009-10-16 17:14:09.000000000 +0200
+++ media/liboggplay/src/liboggplay/std_semaphore.h
@@ -74,9 +74,9 @@
  * @retval non-zero on error 
  */
 
-#if defined(linux) || defined(SOLARIS) || defined(AIX) || defined(__FreeBSD__)
+#if defined(linux) || defined(SOLARIS) || defined(AIX) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
 #include <semaphore.h>
-#if defined(__FreeBSD__) 
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 #define SEM_CREATE(p,s) sem_init(&(p), 0, s)  
 #else
 #define SEM_CREATE(p,s) sem_init(&(p), 1, s)