diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-09-08 10:34:16 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-09-08 10:34:16 +0200 |
commit | ecdf47b97abb8c5107846f4ef4a17bd62ba6dc82 (patch) | |
tree | 7bb1e6ab8131d1d679f5a5bb5e5953e4a60d3986 /src/lib/shm_ap_rbuff.c | |
parent | b9793ab68aa321b0dac14d1dff5789edb95ad0bb (diff) | |
parent | 2e561a634ae3e747b293a4e05eaf44726968dc1a (diff) | |
download | ouroboros-ecdf47b97abb8c5107846f4ef4a17bd62ba6dc82.tar.gz ouroboros-ecdf47b97abb8c5107846f4ef4a17bd62ba6dc82.zip |
Merged in dstaesse/ouroboros/be-apple (pull request #250)
lib: Fix shm for evil devices
Diffstat (limited to 'src/lib/shm_ap_rbuff.c')
-rw-r--r-- | src/lib/shm_ap_rbuff.c | 4 |
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, |