aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-02-03 16:09:34 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-02-14 17:24:16 +0100
commitee8353cd646b35a7081217c82503783c1fc96c2c (patch)
tree65f7496d29587345073a7929d80596015b65c6bc
parent67920b882045069d755945cdc56117bfff4b1fcd (diff)
downloadpasst-ee8353cd646b35a7081217c82503783c1fc96c2c.tar
passt-ee8353cd646b35a7081217c82503783c1fc96c2c.tar.gz
passt-ee8353cd646b35a7081217c82503783c1fc96c2c.tar.bz2
passt-ee8353cd646b35a7081217c82503783c1fc96c2c.tar.lz
passt-ee8353cd646b35a7081217c82503783c1fc96c2c.tar.xz
passt-ee8353cd646b35a7081217c82503783c1fc96c2c.tar.zst
passt-ee8353cd646b35a7081217c82503783c1fc96c2c.zip
Makefile: Explict int type in FALLOC_FL_COLLAPSE_RANGE probe
Future compilers will not support implicit ints by default, causing the probe to always fail. Link: https://bugs.passt.top/show_bug.cgi?id=42 Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dd222a8..080c748 100644
--- a/Makefile
+++ b/Makefile
@@ -101,7 +101,7 @@ ifeq ($(shell :|$(CC) -fstack-protector-strong -S -xc - -o - >/dev/null 2>&1; ec
FLAGS += -fstack-protector-strong
endif
-C := \#define _GNU_SOURCE\n\#include <fcntl.h>\nx = FALLOC_FL_COLLAPSE_RANGE;
+C := \#define _GNU_SOURCE\n\#include <fcntl.h>\nint x = FALLOC_FL_COLLAPSE_RANGE;
ifeq ($(shell printf "$(C)" | $(CC) -S -xc - -o - >/dev/null 2>&1; echo $$?),0)
EXTRA_SYSCALLS += fallocate
endif