2009-12-26 08:21:21 -05:00
|
|
|
$OpenBSD: patch-src_sl_slPortability_h,v 1.2 2009/12/26 13:21:21 jakemsr Exp $
|
|
|
|
--- src/sl/slPortability.h.orig Mon Mar 10 19:06:24 2008
|
|
|
|
+++ src/sl/slPortability.h Wed Dec 16 01:43:22 2009
|
Import plib-1.8.5
PLIB is a suite of portable game librairies.
PLIB includes sound effects, music, a complete 3D engine, font
rendering, a simple Windowing library, a game scripting language, a GUI,
networking, 3D math library and a collection of handy utility functions.
All are 100% portable across nearly all modern computing platforms.
Each library component is fairly independent of the others - so if you
want to use SDL, GTK, GLUT, or FLTK instead of PLIB's 'PW' windowing
library, you can.
Based on a submission from Gallon Sylvestre (MAINTAINER)
2008-11-10 17:10:22 -05:00
|
|
|
@@ -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
|
|
|
|
|
2009-12-26 08:21:21 -05:00
|
|
|
@@ -75,9 +75,14 @@
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef UL_BSD
|
|
|
|
-#ifndef __FreeBSD__
|
|
|
|
-# include <sys/audioio.h>
|
|
|
|
-#endif
|
|
|
|
+# ifdef __OpenBSD__
|
|
|
|
+# define SL_USING_SNDIO
|
|
|
|
+# include <sndio.h>
|
|
|
|
+# else
|
|
|
|
+# ifndef __FreeBSD__
|
|
|
|
+# include <sys/audioio.h>
|
|
|
|
+# endif
|
|
|
|
+# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Tom */
|