]> git.sur5r.net Git - i3/i3/commitdiff
OpenBSD lacks posix_fallocate()
authorDavid Coppa <dcoppa@gmail.com>
Wed, 22 Jan 2014 12:55:49 +0000 (13:55 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 23 Jan 2014 21:20:14 +0000 (22:20 +0100)
src/log.c

index 86f47b9acfa7c3c77362d587fce4cc73bfa8579b..7bd2e74e5494553e047ba01209feaf52368b46d0 100644 (file)
--- 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