aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/shm.c b/util/shm.c
index 3783e473..b4e8d087 100644
--- a/util/shm.c
+++ b/util/shm.c
@@ -42,7 +42,7 @@ int allocate_shm_file(size_t size) {
return -1;
}
-#ifdef WLR_HAS_POSIX_FALLOCATE
+#if defined(WLR_HAS_POSIX_FALLOCATE) && !defined(__FreeBSD__)
int ret;
do {
ret = posix_fallocate(fd, 0, size);