From a84d9675b4b2e65a8e6e075b714bbec67825b44a Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Thu, 18 Aug 2016 19:00:52 +0200 Subject: [PATCH] mk-conf.sh: we actually REQUIRE ftruncate(2)! --- mk-conf.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mk-conf.sh b/mk-conf.sh index c94b2c0d..474e62bb 100644 --- a/mk-conf.sh +++ b/mk-conf.sh @@ -1249,6 +1249,21 @@ else config_exit 1 fi +if link_check ftruncate 'ftruncate(2)' \ + '#define HAVE_FTRUNCATE' << \! +#include +#include +int main(void){ + return (ftruncate(0, 0) != 0); +} +! +then + : +else + msg 'ERROR: we require the ftruncate(2) system call.' + config_exit 1 +fi + if run_check sa_restart 'SA_RESTART (for sigaction(2))' << \! #include # include -- 2.11.4.GIT