From 88300f0f30354213f06a83acf43b9f6ec3ee2a41 Mon Sep 17 00:00:00 2001 From: David Coppa Date: Wed, 22 Jan 2014 13:55:49 +0100 Subject: [PATCH] OpenBSD lacks posix_fallocate() --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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