aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/obsolete/pulseaudio/files/fix-shm.patch
blob: 3bf61d0d3404bc8e44949f738604935a2a86bf39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# fixes building against uclibc
# fixed upstream, see http://www.pulseaudio.org/ticket/200
Index: pulseaudio-0.9.9/src/pulsecore/shm.c
===================================================================
--- pulseaudio-0.9.9/src/pulsecore/shm.c (revision 1971)
+++ pulseaudio-0.9.9/src/pulsecore/shm.c (revision 2110)
@@ -319,4 +319,5 @@
 int pa_shm_cleanup(void) {
 
+#ifdef HAVE_SHM_OPEN
 #ifdef SHM_PATH
     DIR *d;
@@ -376,5 +377,6 @@
 
     closedir(d);
-#endif
+#endif /* SHM_PATH */
+#endif /* HAVE_SHM_OPEN */
 
     return 0;