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>
This commit is contained in:
parent
67920b8820
commit
ee8353cd64
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -101,7 +101,7 @@ ifeq ($(shell :|$(CC) -fstack-protector-strong -S -xc - -o - >/dev/null 2>&1; ec
|
||||||
FLAGS += -fstack-protector-strong
|
FLAGS += -fstack-protector-strong
|
||||||
endif
|
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)
|
ifeq ($(shell printf "$(C)" | $(CC) -S -xc - -o - >/dev/null 2>&1; echo $$?),0)
|
||||||
EXTRA_SYSCALLS += fallocate
|
EXTRA_SYSCALLS += fallocate
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue