summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Weimer2019-07-05 17:20:27 +0200
committerKarel Zak2019-07-15 11:06:21 +0200
commit1632856ef19efb50c57c939b82a9ff712b3c0b09 (patch)
treeec8ca1aa8ddb744b601e2c499d65376b4edecf2d
parentlsblk: force to print PKNAME for partition (diff)
downloadkernel-qcow2-util-linux-1632856ef19efb50c57c939b82a9ff712b3c0b09.tar.gz
kernel-qcow2-util-linux-1632856ef19efb50c57c939b82a9ff712b3c0b09.tar.xz
kernel-qcow2-util-linux-1632856ef19efb50c57c939b82a9ff712b3c0b09.zip
build-sys: Include <stdlib.h> in ./configure wchar_t test
Without #include <stdlib.h>, this configure check fails for strict C99/C11 compilers which do not support implicit function declarations (which are a C90 feature removed from C99). Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a840e20ee..997b6388c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -756,6 +756,7 @@ UL_REQUIRES_COMPILE([widechar], [[
#include <wchar.h>
#include <wctype.h>
#include <stdio.h>
+ #include <stdlib.h>
]], [[
wchar_t wc;
wint_t w;