diff options
Diffstat (limited to 'src/lib/shm_rdrbuff.c')
-rw-r--r-- | src/lib/shm_rdrbuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index 7c4927fc..bf5c7f16 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -190,14 +190,14 @@ struct shm_rdrbuff * shm_rdrbuff_create() free(rdrb); return NULL; } - +#ifndef __APPLE if (write(shm_fd, "", 1) != 1) { LOG_DBGF("Failed to finalise extension of shared memory map."); free(shm_rdrb_fn); free(rdrb); return NULL; } - +#endif shm_base = mmap(NULL, SHM_FILE_SIZE, PROT_READ | PROT_WRITE, |