From 7f8ae43d15b58319d4d6ba9655ac4a4f5eb1e705 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 3 Feb 2023 16:09:34 +0100 Subject: [PATCH] Makefile: Explict int type in FALLOC_FL_COLLAPSE_RANGE probe Content-type: text/plain Future compilers will not support implicit ints by default, causing the probe to always fail. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \nx = FALLOC_FL_COLLAPSE_RANGE; +C := \#define _GNU_SOURCE\n\#include \nint x = FALLOC_FL_COLLAPSE_RANGE; ifeq ($(shell printf "$(C)" | $(CC) -S -xc - -o - >/dev/null 2>&1; echo $$?),0) EXTRA_SYSCALLS += fallocate endif -- 2.39.1