Merge branch 'openbsd-fallocate'
This commit is contained in:
commit
7aa5be9d41
|
@ -129,7 +129,7 @@ void open_logbuffer(void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__OpenBSD__) || defined(__APPLE__)
|
||||||
if (ftruncate(logbuffer_shm, logbuffer_size) == -1) {
|
if (ftruncate(logbuffer_shm, logbuffer_size) == -1) {
|
||||||
fprintf(stderr, "Could not ftruncate SHM segment for the i3 log: %s\n", strerror(errno));
|
fprintf(stderr, "Could not ftruncate SHM segment for the i3 log: %s\n", strerror(errno));
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue