alsa-{lib,utils,plugins} and pulseaudio packages (#825)
[termux-packages] / disabled-packages / alsa-lib / pcm_mmap.c.patch.old
diff --git a/disabled-packages/alsa-lib/pcm_mmap.c.patch.old b/disabled-packages/alsa-lib/pcm_mmap.c.patch.old
new file mode 100644 (file)
index 0000000..703b097
--- /dev/null
@@ -0,0 +1,20 @@
+--- ./src/pcm/pcm_mmap.c       2016-08-02 23:18:38.000000000 +0530
++++ /home/vishal/AndroidDev/alsa/src/pcm/pcm_mmap.c    2016-12-03 00:06:36.620336924 +0530
+@@ -344,7 +344,7 @@
+                       i->addr = ptr;
+                       break;
+               case SND_PCM_AREA_SHM:
+-#ifdef HAVE_SYS_SHM_H
++#if 0
+                       if (i->u.shm.shmid < 0) {
+                               int id;
+                               /* FIXME: safer permission? */
+@@ -474,7 +474,7 @@
+                       errno = 0;
+                       break;
+               case SND_PCM_AREA_SHM:
+-#ifdef HAVE_SYS_SHM_H
++#if 0
+                       if (i->u.shm.area) {
+                               snd_shm_area_destroy(i->u.shm.area);
+                               i->u.shm.area = NULL;