From: David Coppa Date: Wed, 22 Jan 2014 12:55:49 +0000 (+0100) Subject: OpenBSD lacks posix_fallocate() X-Git-Tag: 4.7.2~2^2 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=88300f0f30354213f06a83acf43b9f6ec3ee2a41 OpenBSD lacks posix_fallocate() --- diff --git a/src/log.c b/src/log.c index 86f47b9a..7bd2e74e 100644 --- a/src/log.c +++ b/src/log.c @@ -129,7 +129,7 @@ void open_logbuffer(void) { return; } -#if defined(__APPLE__) +#if defined(__OpenBSD__) || defined(__APPLE__) if (ftruncate(logbuffer_shm, logbuffer_size) == -1) { fprintf(stderr, "Could not ftruncate SHM segment for the i3 log: %s\n", strerror(errno)); #else