]> code.delx.au - pulseaudio/commitdiff
allow compilation on systems that lack POSIX shared memory. Patch from matthijs,...
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Feb 2008 13:38:12 +0000 (13:38 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Feb 2008 13:38:12 +0000 (13:38 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2110 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/shm.c

index 6882e7f8586ac547d3e271fa9dff45ba727d2cfb..7c764e3a0f6de12d0b84ddf12af754fd5fe3bd47 100644 (file)
@@ -318,6 +318,7 @@ int pa_shm_attach_ro(pa_shm *m, unsigned id) {
 
 int pa_shm_cleanup(void) {
 
+#ifdef HAVE_SHM_OPEN
 #ifdef SHM_PATH
     DIR *d;
     struct dirent *de;
@@ -375,7 +376,8 @@ int pa_shm_cleanup(void) {
     }
 
     closedir(d);
-#endif
+#endif /* SHM_PATH */
+#endif /* HAVE_SHM_OPEN */
 
     return 0;
 }