[pulseaudio-commits] r2110 - /trunk/src/pulsecore/shm.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Feb 15 05:38:12 PST 2008


Author: lennart
Date: Fri Feb 15 14:38:12 2008
New Revision: 2110

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2110&root=pulseaudio&view=rev
Log:
allow compilation on systems that lack POSIX shared memory. Patch from matthijs, closes #200

Modified:
    trunk/src/pulsecore/shm.c

Modified: trunk/src/pulsecore/shm.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/shm.c?rev=2110&root=pulseaudio&r1=2109&r2=2110&view=diff
==============================================================================
--- trunk/src/pulsecore/shm.c (original)
+++ trunk/src/pulsecore/shm.c Fri Feb 15 14:38:12 2008
@@ -318,6 +318,7 @@
 
 int pa_shm_cleanup(void) {
 
+#ifdef HAVE_SHM_OPEN
 #ifdef SHM_PATH
     DIR *d;
     struct dirent *de;
@@ -375,7 +376,8 @@
     }
 
     closedir(d);
-#endif
+#endif /* SHM_PATH */
+#endif /* HAVE_SHM_OPEN */
 
     return 0;
 }




More information about the pulseaudio-commits mailing list