patches/alsa-lib-08-mapfile.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2968 55a6e68a55fc
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

diff -ur alsa-lib-1.0.14a.orig/src/pcm/pcm_mmap.c alsa-lib-1.0.14a/src/pcm/pcm_mmap.c
--- alsa-lib-1.0.14a.orig/src/pcm/pcm_mmap.c	2007-06-11 15:53:13.000000000 +0700
+++ alsa-lib-1.0.14a/src/pcm/pcm_mmap.c	2007-08-11 15:19:28.242297858 +0700
@@ -25,6 +25,9 @@
 #include <sys/mman.h>
 #include <sys/shm.h>
 #include "pcm_local.h"
+#ifndef MAP_FILE
+# define MAP_FILE 0
+#endif
 
 size_t page_size(void)
 {
diff -ur alsa-lib-1.0.14a.orig/src/pcm/pcm_shm.c alsa-lib-1.0.14a/src/pcm/pcm_shm.c
--- alsa-lib-1.0.14a.orig/src/pcm/pcm_shm.c	2007-06-11 15:53:14.000000000 +0700
+++ alsa-lib-1.0.14a/src/pcm/pcm_shm.c	2007-08-11 15:20:10.739130537 +0700
@@ -44,6 +44,9 @@
 #include <net/if.h>
 #include <netdb.h>
 #include "aserver.h"
+#ifndef MAP_FILE
+# define MAP_FILE 0
+#endif
 
 #ifndef PIC
 /* entry for static linking */
--- alsa-lib-1.0.23.orig/src/pcm/pcm_hw.c	Sun Sep 19 11:57:55 2010
+++ alsa-lib-1.0.23/src/pcm/pcm_hw.c	Sun Sep 19 11:58:53 2010
@@ -40,6 +40,9 @@
 #include "pcm_local.h"
 #include "../control/control_local.h"
 #include "../timer/timer_local.h"
+#ifndef MAP_FILE
+# define MAP_FILE 0
+#endif
 
 //#define DEBUG_RW		/* use to debug readi/writei/readn/writen */
 //#define DEBUG_MMAP		/* debug mmap_commit */