diff options
author | John Marino <marino@FreeBSD.org> | 2014-02-05 17:20:33 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-02-05 17:20:33 +0000 |
commit | eff04b579a31989dac2ea07bdc1b69b11690f60f (patch) | |
tree | 438f611c1e25f22405688c340b2dfe6ea38622b9 /x11-toolkits/plib | |
parent | Support staging. (diff) |
x11-toolkits/plib: Add dports patches for dragonfly support
Notes
Notes:
svn path=/head/; revision=342793
Diffstat (limited to 'x11-toolkits/plib')
-rw-r--r-- | x11-toolkits/plib/files/patch-src_sl_slDSP.cxx | 11 | ||||
-rw-r--r-- | x11-toolkits/plib/files/patch-src_sl_slPortability.h | 29 |
2 files changed, 40 insertions, 0 deletions
diff --git a/x11-toolkits/plib/files/patch-src_sl_slDSP.cxx b/x11-toolkits/plib/files/patch-src_sl_slDSP.cxx new file mode 100644 index 000000000000..0edddf6bd319 --- /dev/null +++ b/x11-toolkits/plib/files/patch-src_sl_slDSP.cxx @@ -0,0 +1,11 @@ +--- src/sl/slDSP.cxx.orig 2008-03-11 02:06:24.000000000 +0000 ++++ src/sl/slDSP.cxx +@@ -413,7 +413,7 @@ void slDSP::stop () + /* NetBSD/OpenBSD 2.3 this should be very close to SUN Audio */ + /* ------------------------------------------------------------ */ + +-#elif (defined(UL_BSD) && !defined(__FreeBSD__)) || defined(UL_SOLARIS) ++#elif (defined(UL_BSD) && !defined(__FreeBSD__) && !defined(__DragonFly__)) || defined(UL_SOLARIS) + void slDSP::open ( const char *device, int _rate, int _stereo, int _bps ) + { + diff --git a/x11-toolkits/plib/files/patch-src_sl_slPortability.h b/x11-toolkits/plib/files/patch-src_sl_slPortability.h new file mode 100644 index 000000000000..130336acb6fa --- /dev/null +++ b/x11-toolkits/plib/files/patch-src_sl_slPortability.h @@ -0,0 +1,29 @@ +--- src/sl/slPortability.h.orig 2008-03-11 02:06:24.000000000 +0000 ++++ 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(__DragonFly__)) && !defined(__NetBSD__) + #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,7 +75,7 @@ + #endif + + #ifdef UL_BSD +-#ifndef __FreeBSD__ ++#if !defined(__FreeBSD__) && !defined(__DragonFly__) + # include <sys/audioio.h> + #endif + #endif |