From 37edac9a0ca83f311279d2e49bacd6ac80310dc8 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 31 Aug 2015 16:23:45 +0800 Subject: build-sys: include errno.h instead of argp.h configure should include errno.h instead of argp.h when checking for presence of program_invocation_short_name uclibc defines this to be const char* unlike util-linux-ng which defines this to be char* so this error goes unnoticed on glibc/eglibc systems. here is the error it fixes in file included from mountP.h:14:0, from cache.c:29: /home/kraj/work/slugos/build/tmp-slugos-uclibc/sysroots/nslu2le/usr/include/errno.h:55:46: error: conflicting types for '__progname' ../../../include/c.h:118:14: note: previous declaration of '__progname' was here make[3]: *** [cache.lo] Error 1 Signed-off-by: Khem Raj Signed-off-by: Jonathan Liu --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 547393c17..43ea7169c 100644 --- a/configure.ac +++ b/configure.ac @@ -429,7 +429,7 @@ AS_CASE([$have_dirfd:$have_ddfd], AC_MSG_CHECKING([whether program_invocation_short_name is defined]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include + #include ]], [[ program_invocation_short_name = "test"; ]])], [ -- cgit v1.2.3-55-g7522