OpenBSD lacks posix_fallocate()

next
David Coppa 2014-01-22 13:55:49 +01:00 committed by Michael Stapelberg
parent d090bd5ac1
commit 88300f0f30
1 changed files with 1 additions and 1 deletions

View File

@ -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