Discussion:
[i3] [PATCH] OpenBSD lacks posix_fallocate()
David Coppa
2014-01-22 13:14:15 UTC
Permalink
Hi again!

Just like OS X, also OpenBSD currently lacks posix_fallocate().
Diff attached.

Ciao,
David

diff --git a/src/log.c b/src/log.c
index 86f47b9..7bd2e74 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
--
1.8.5.2
Michael Stapelberg
2014-01-23 22:09:27 UTC
Permalink
Hi David,
Post by David Coppa
Just like OS X, also OpenBSD currently lacks posix_fallocate().
Diff attached.
Merged. Please submit directly to http://cr.i3wm.org/ in the future
:). Thanks!
--
Best regards,
Michael
Loading...