diff options
author | marino <marino@FreeBSD.org> | 2014-02-06 01:20:33 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-02-06 01:20:33 +0800 |
commit | 081b12c7e1c1ef170b44dccf17cebd65ec2a9cb2 (patch) | |
tree | 438f611c1e25f22405688c340b2dfe6ea38622b9 | |
parent | 2cf1aa3e50b947ba7d4aebc1e730796620006d92 (diff) | |
download | freebsd-ports-gnome-081b12c7e1c1ef170b44dccf17cebd65ec2a9cb2.tar.gz freebsd-ports-gnome-081b12c7e1c1ef170b44dccf17cebd65ec2a9cb2.tar.zst freebsd-ports-gnome-081b12c7e1c1ef170b44dccf17cebd65ec2a9cb2.zip |
x11-toolkits/plib: Add dports patches for dragonfly support
-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 |