Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
$NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $
|
||||
$NetBSD: patch-aa,v 1.5 2013/12/15 20:33:47 asau Exp $
|
||||
|
||||
--- src/backends/alc_backend_bsd.c.orig 2006-01-05 15:11:20.000000000 +0000
|
||||
+++ src/backends/alc_backend_bsd.c
|
||||
@@ -9,15 +9,27 @@
|
||||
+++ src/backends/alc_backend_bsd.c 2013-12-15 20:30:26.204504830 +0000
|
||||
@@ -9,15 +9,31 @@
|
||||
*/
|
||||
#include "al_siteconfig.h"
|
||||
|
||||
+#ifdef __NetBSD__
|
||||
+#define _NETBSD_SOURCE
|
||||
+#endif
|
||||
+#ifdef __FreeBSD__
|
||||
+#define __BSD_VISIBLE 1
|
||||
+#endif
|
||||
+
|
||||
#include <AL/al.h>
|
||||
+#include <AL/alext.h>
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <machine/soundcard.h>
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/soundcard.h>
|
||||
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
+#include <soundcard.h>
|
||||
+#else
|
||||
@@ -30,7 +34,7 @@ $NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
@@ -210,7 +222,11 @@ void release_native(void *handle) {
|
||||
@@ -210,7 +226,11 @@
|
||||
|
||||
handle_fd = *(int *) handle;
|
||||
|
||||
@@ -42,7 +46,7 @@ $NetBSD: patch-aa,v 1.4 2012/04/17 17:40:50 joerg Exp $
|
||||
#ifdef DEBUG_MAXIMUS
|
||||
fprintf(stderr, "Couldn't reset dsp\n");
|
||||
#endif
|
||||
@@ -385,7 +401,7 @@ alcBackendSetAttributesNative_(ALC_OpenM
|
||||
@@ -385,7 +405,7 @@
|
||||
static void *grab_read_native(void)
|
||||
{
|
||||
fprintf(stderr,"grab_read_native Not implemented! (%s:%d)\n",__FILE__,__LINE__);
|
||||
|
||||
Reference in New Issue
Block a user