aboutsummaryrefslogtreecommitdiff
path: root/util/shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/shm.c')
-rw-r--r--util/shm.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/util/shm.c b/util/shm.c
index b4e8d087..f7c7303e 100644
--- a/util/shm.c
+++ b/util/shm.c
@@ -42,17 +42,6 @@ int allocate_shm_file(size_t size) {
return -1;
}
-#if defined(WLR_HAS_POSIX_FALLOCATE) && !defined(__FreeBSD__)
- int ret;
- do {
- ret = posix_fallocate(fd, 0, size);
- } while (ret == EINTR);
- if (ret != 0) {
- close(fd);
- errno = ret;
- return -1;
- }
-#else
int ret;
do {
ret = ftruncate(fd, size);
@@ -61,7 +50,6 @@ int allocate_shm_file(size_t size) {
close(fd);
return -1;
}
-#endif
return fd;
}