summaryrefslogtreecommitdiff
path: root/games/plib/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'games/plib/patches/patch-aa')
-rw-r--r--games/plib/patches/patch-aa30
1 files changed, 24 insertions, 6 deletions
diff --git a/games/plib/patches/patch-aa b/games/plib/patches/patch-aa
index 5aa747d9154..a58fef62565 100644
--- a/games/plib/patches/patch-aa
+++ b/games/plib/patches/patch-aa
@@ -1,7 +1,16 @@
-$NetBSD: patch-aa,v 1.7 2008/03/14 14:38:46 drochner Exp $
+$NetBSD: patch-aa,v 1.8 2013/01/06 00:59:47 ryoon Exp $
---- src/sl/slPortability.h.orig 2008-03-11 03:06:24.000000000 +0100
+--- src/sl/slPortability.h.orig Tue Mar 11 02:06:24 2008
+++ src/sl/slPortability.h
+@@ -51,7 +51,7 @@
+ #include <limits.h>
+ #include <math.h>
+
+-#if (defined(UL_LINUX) || defined(UL_BSD)) && !defined(__NetBSD__)
++#if (defined(UL_LINUX) || defined(UL_BSD)) && !defined(__NetBSD__) && !defined(__OpenBSD__)
+ #define SL_USING_OSS_AUDIO 1
+ #endif
+
@@ -59,7 +59,7 @@
# if defined(UL_LINUX)
# include <linux/soundcard.h>
@@ -11,12 +20,21 @@ $NetBSD: patch-aa,v 1.7 2008/03/14 14:38:46 drochner Exp $
# include <sys/soundcard.h>
# else
/*
-@@ -75,7 +75,7 @@
+@@ -75,9 +75,14 @@
#endif
#ifdef UL_BSD
-#ifndef __FreeBSD__
-+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
- # include <sys/audioio.h>
- #endif
+-# include <sys/audioio.h>
+-#endif
++# if defined(__OpenBSD__)
++# define SL_USING_SNDIO
++# include <sndio.h>
++# else
++# if !defined(__FreeBSD__) || !defined(__DragonFly__)
++# include <sys/audioio.h>
++# endif
++# endif
#endif
+
+ /* Tom */