diff options
Diffstat (limited to 'src/lib/lockfile.c')
-rw-r--r-- | src/lib/lockfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/lockfile.c b/src/lib/lockfile.c index 81bed687..04ce9324 100644 --- a/src/lib/lockfile.c +++ b/src/lib/lockfile.c @@ -64,13 +64,13 @@ struct lockfile * lockfile_create() { free(lf); return NULL; } - +#ifndef __APPLE__ if (write(lf->fd, "", 1) != 1) { LOG_DBGF("Failed to finalise lockfile."); free(lf); return NULL; } - +#endif lf->api = mmap(NULL, LF_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, |