* [LTP] [COMMITTED][PATCH 1/1] m4: Remove include from AC_CHECK_FUNCS
@ 2018-10-18 9:14 Petr Vorel
0 siblings, 0 replies; only message in thread
From: Petr Vorel @ 2018-10-18 9:14 UTC (permalink / raw)
To: ltp
As AC_CHECK_FUNCS doesn't use it (unlike AC_CHECK_TYPES). The purpose
of AC_CHECK_FUNCS is to check whether the linker can find a function
by that name, independently of system headers, so there is no reason
to include any system headers.
Fixes: 0d28feaac ("syscalls: Prepare for testing statx syscall")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
m4/ltp-statx.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m4/ltp-statx.m4 b/m4/ltp-statx.m4
index 5f79a94cd..7629f51c2 100644
--- a/m4/ltp-statx.m4
+++ b/m4/ltp-statx.m4
@@ -21,7 +21,7 @@ dnl LTP_CHECK_STATX
dnl ----------------------------
dnl
AC_DEFUN([LTP_CHECK_STATX],[
-AC_CHECK_FUNCS(statx,,,[[#include <sys/stat.h>]])
+AC_CHECK_FUNCS(statx,,)
AC_CHECK_HEADER(linux/fs.h,,,)
AC_CHECK_TYPES([struct statx],,,[[
#define _GNU_SOURCE
--
2.19.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-18 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18 9:14 [LTP] [COMMITTED][PATCH 1/1] m4: Remove include from AC_CHECK_FUNCS Petr Vorel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.