summaryrefslogtreecommitdiff
path: root/src/lib/shm_ap_rbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/shm_ap_rbuff.c')
-rw-r--r--src/lib/shm_ap_rbuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/shm_ap_rbuff.c b/src/lib/shm_ap_rbuff.c
index 473894d5..d9e332fe 100644
--- a/src/lib/shm_ap_rbuff.c
+++ b/src/lib/shm_ap_rbuff.c
@@ -104,13 +104,13 @@ static struct shm_ap_rbuff * shm_ap_rbuff_create(bool dir)
free(rb);
return NULL;
}
-
+#ifndef __APPLE__
if (write(shm_fd, "", 1) != 1) {
LOG_DBG("Failed to finalise extension of ringbuffer.");
free(rb);
return NULL;
}
-
+#endif
shm_base = mmap(NULL,
SHM_RBUFF_FILE_SIZE,
PROT_READ | PROT_WRITE,