1 Index: pulseaudio-0.9.10/src/pulsecore/shm.c
2 ===================================================================
3 --- pulseaudio-0.9.10.orig/src/pulsecore/shm.c 2008-04-11 13:28:12.000000000 +0200
4 +++ pulseaudio-0.9.10/src/pulsecore/shm.c 2008-04-11 13:28:13.000000000 +0200
10 +#ifdef HAVE_SHM_UNLINK
11 struct shm_marker *marker;
13 pa_random(&m->id, sizeof(m->id));
19 +#ifdef HAVE_SHM_UNLINK
28 +#ifdef HAVE_SHM_UNLINK
29 if (munmap(m->ptr, m->size) < 0)
30 pa_log("munmap() failed: %s", pa_cstrerror(errno));
37 +#ifdef HAVE_SHM_UNLINK
39 int pa_shm_attach_ro(pa_shm *m, unsigned id) {
43 int pa_shm_cleanup(void) {
46 +#ifdef HAVE_SHM_UNLINK
51 /* Ok, the owner of this shms segment is dead, so, let's remove the segment */
52 segment_name(fn, sizeof(fn), id);
54 +#ifdef HAVE_SHM_UNLINK
55 if (shm_unlink(fn) < 0 && errno != EACCES)
56 pa_log_warn("Failed to remove SHM segment %s: %s\n", fn, pa_cstrerror(errno));