c52272e75a
The patches are taken from OpenBSD ports repository. * Disable joystick on OpenBSD/!i386 * Use sndio on OpenBSD
40 lines
965 B
Text
40 lines
965 B
Text
$NetBSD: patch-aa,v 1.8 2013/01/06 00:59:47 ryoon Exp $
|
|
|
|
--- 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>
|
|
# include <sys/ioctl.h>
|
|
-# elif defined(__FreeBSD__)
|
|
+# elif defined(__FreeBSD__) || defined(__DragonFly__)
|
|
# include <sys/soundcard.h>
|
|
# else
|
|
/*
|
|
@@ -75,9 +75,14 @@
|
|
#endif
|
|
|
|
#ifdef UL_BSD
|
|
-#ifndef __FreeBSD__
|
|
-# 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 */
|