[Midnightbsd-cvs] mports [21804] trunk/audio/alsa-lib/files: add missing patches i forgot

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Aug 21 14:22:27 EDT 2016


Revision: 21804
          http://svnweb.midnightbsd.org/mports/?rev=21804
Author:   laffer1
Date:     2016-08-21 14:22:17 -0400 (Sun, 21 Aug 2016)
Log Message:
-----------
add missing patches i forgot

Modified Paths:
--------------
    trunk/audio/alsa-lib/files/patch-include_pcm.h

Added Paths:
-----------
    trunk/audio/alsa-lib/files/endian.h
    trunk/audio/alsa-lib/files/patch-src_async.c
    trunk/audio/alsa-lib/files/patch-src_pcm_pcm__direct.c
    trunk/audio/alsa-lib/files/patch-test_midifile.c

Added: trunk/audio/alsa-lib/files/endian.h
===================================================================
--- trunk/audio/alsa-lib/files/endian.h	                        (rev 0)
+++ trunk/audio/alsa-lib/files/endian.h	2016-08-21 18:22:17 UTC (rev 21804)
@@ -0,0 +1,4 @@
+#ifndef _ENDIAN_H
+#define	_ENDIAN_H
+#include <linux/types.h>
+#endif /* _ENDIAN_H */


Property changes on: trunk/audio/alsa-lib/files/endian.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/audio/alsa-lib/files/patch-include_pcm.h
===================================================================
--- trunk/audio/alsa-lib/files/patch-include_pcm.h	2016-08-21 17:39:59 UTC (rev 21803)
+++ trunk/audio/alsa-lib/files/patch-include_pcm.h	2016-08-21 18:22:17 UTC (rev 21804)
@@ -1,4 +1,4 @@
---- include/pcm.h~
+--- include/pcm.h.orig	2016-03-31 13:10:39 UTC
 +++ include/pcm.h
 @@ -29,6 +29,13 @@
  #ifndef __ALSA_PCM_H

Added: trunk/audio/alsa-lib/files/patch-src_async.c
===================================================================
--- trunk/audio/alsa-lib/files/patch-src_async.c	                        (rev 0)
+++ trunk/audio/alsa-lib/files/patch-src_async.c	2016-08-21 18:22:17 UTC (rev 21804)
@@ -0,0 +1,28 @@
+$NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
+
+--- src/async.c.orig	2016-03-31 13:10:39 UTC
++++ src/async.c
+@@ -51,6 +51,15 @@ static LIST_HEAD(snd_async_handlers);
+ 
+ static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
+ {
++#if defined(__DragonFly__) || defined(__FreeBSD__)
++	/* XXX XXX XXX */
++	struct list_head *i;
++	list_for_each(i, &snd_async_handlers) {
++		snd_async_handler_t *h = list_entry(i, snd_async_handler_t, glist);
++		if (h->callback)
++			h->callback(h);
++	}
++#else
+ 	int fd;
+ 	struct list_head *i;
+ 	//assert(siginfo->si_code == SI_SIGIO);
+@@ -60,6 +69,7 @@ static void snd_async_handler(int signo 
+ 		if (h->fd == fd && h->callback)
+ 			h->callback(h);
+ 	}
++#endif
+ }
+ 
+ /**


Property changes on: trunk/audio/alsa-lib/files/patch-src_async.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/alsa-lib/files/patch-src_pcm_pcm__direct.c
===================================================================
--- trunk/audio/alsa-lib/files/patch-src_pcm_pcm__direct.c	                        (rev 0)
+++ trunk/audio/alsa-lib/files/patch-src_pcm_pcm__direct.c	2016-08-21 18:22:17 UTC (rev 21804)
@@ -0,0 +1,19 @@
+--- src/pcm/pcm_direct.c.orig	2016-03-31 13:10:39 UTC
++++ src/pcm/pcm_direct.c
+@@ -44,12 +44,16 @@
+  *
+  */
+  
++#if defined(__NetBSD__)
++typedef __semun semun;
++#elif !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
+ union semun {
+ 	int              val;    /* Value for SETVAL */
+ 	struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
+ 	unsigned short  *array;  /* Array for GETALL, SETALL */
+ 	struct seminfo  *__buf;  /* Buffer for IPC_INFO (Linux specific) */
+ };
++#endif
+  
+ /*
+  * FIXME:


Property changes on: trunk/audio/alsa-lib/files/patch-src_pcm_pcm__direct.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/alsa-lib/files/patch-test_midifile.c
===================================================================
--- trunk/audio/alsa-lib/files/patch-test_midifile.c	                        (rev 0)
+++ trunk/audio/alsa-lib/files/patch-test_midifile.c	2016-08-21 18:22:17 UTC (rev 21804)
@@ -0,0 +1,20 @@
+--- test/midifile.c.orig	2016-03-31 13:10:39 UTC
++++ test/midifile.c
+@@ -71,7 +71,7 @@
+ #endif
+ 
+ #include <stdio.h>
+-#include <values.h>
++#include <limits.h>
+ 
+ #include <string.h>
+ /*void exit(), free();*/
+@@ -328,7 +328,7 @@ readtrack ()			/* read a track chunk */
+ 
+   if (Mf_interactive)
+     {
+-      Mf_toberead = MAXINT;
++      Mf_toberead = INT_MAX;
+     }
+   else
+     {


Property changes on: trunk/audio/alsa-lib/files/patch-test_midifile.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list