From 081b12c7e1c1ef170b44dccf17cebd65ec2a9cb2 Mon Sep 17 00:00:00 2001 From: marino Date: Wed, 5 Feb 2014 17:20:33 +0000 Subject: x11-toolkits/plib: Add dports patches for dragonfly support --- x11-toolkits/plib/files/patch-src_sl_slDSP.cxx | 11 ++++++++ .../plib/files/patch-src_sl_slPortability.h | 29 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 x11-toolkits/plib/files/patch-src_sl_slDSP.cxx create mode 100644 x11-toolkits/plib/files/patch-src_sl_slPortability.h 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 + #include + +-#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 + # include +-# elif defined(__FreeBSD__) ++# elif defined(__FreeBSD__) || defined(__DragonFly__) + # include + # else + /* +@@ -75,7 +75,7 @@ + #endif + + #ifdef UL_BSD +-#ifndef __FreeBSD__ ++#if !defined(__FreeBSD__) && !defined(__DragonFly__) + # include + #endif + #endif -- cgit