mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
allow compilation on systems that lack POSIX shared memory. Patch from matthijs, closes #200
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2110 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5552139402
commit
2b8bc5cbbf
1 changed files with 3 additions and 1 deletions
|
|
@ -318,6 +318,7 @@ int pa_shm_attach_ro(pa_shm *m, unsigned id) {
|
||||||
|
|
||||||
int pa_shm_cleanup(void) {
|
int pa_shm_cleanup(void) {
|
||||||
|
|
||||||
|
#ifdef HAVE_SHM_OPEN
|
||||||
#ifdef SHM_PATH
|
#ifdef SHM_PATH
|
||||||
DIR *d;
|
DIR *d;
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
|
|
@ -375,7 +376,8 @@ int pa_shm_cleanup(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
closedir(d);
|
closedir(d);
|
||||||
#endif
|
#endif /* SHM_PATH */
|
||||||
|
#endif /* HAVE_SHM_OPEN */
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue