svn commit: r342793 - head/x11-toolkits/plib/files

John Marino marino at FreeBSD.org
Wed Feb 5 17:20:34 UTC 2014


Author: marino
Date: Wed Feb  5 17:20:33 2014
New Revision: 342793
URL: http://svnweb.freebsd.org/changeset/ports/342793
QAT: https://qat.redports.org/buildarchive/r342793/

Log:
  x11-toolkits/plib: Add dports patches for dragonfly support

Added:
  head/x11-toolkits/plib/files/patch-src_sl_slDSP.cxx   (contents, props changed)
  head/x11-toolkits/plib/files/patch-src_sl_slPortability.h   (contents, props changed)

Added: head/x11-toolkits/plib/files/patch-src_sl_slDSP.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/plib/files/patch-src_sl_slDSP.cxx	Wed Feb  5 17:20:33 2014	(r342793)
@@ -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 )
+ {
+ 

Added: head/x11-toolkits/plib/files/patch-src_sl_slPortability.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/plib/files/patch-src_sl_slPortability.h	Wed Feb  5 17:20:33 2014	(r342793)
@@ -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


More information about the svn-ports-all mailing list