From 20f4a8d9937b2a824a5d20583dd850070fe29988 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Dec 2013 11:36:54 -0500 Subject: tst-fanotify: switch to AC_DEFINE Reported-by: Joseph S. Myers Signed-off-by: Mike Frysinger --- sysdeps/unix/sysv/linux/configure | 3 ++- sysdeps/unix/sysv/linux/configure.ac | 2 +- sysdeps/unix/sysv/linux/tst-fanotify.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index ab0f03c35e..d5ee4ef5d5 100644 --- a/sysdeps/unix/sysv/linux/configure +++ b/sysdeps/unix/sysv/linux/configure @@ -303,7 +303,8 @@ fi ac_fn_c_check_header_compile "$LINENO" "linux/fanotify.h" "ac_cv_header_linux_fanotify_h" "/* No default includes. */ " if test "x$ac_cv_header_linux_fanotify_h" = xyes; then : - DEFINES="$DEFINES -DHAVE_LINUX_FANOTIFY_H=1" + $as_echo "#define HAVE_LINUX_FANOTIFY_H 1" >>confdefs.h + fi diff --git a/sysdeps/unix/sysv/linux/configure.ac b/sysdeps/unix/sysv/linux/configure.ac index 6d6053f27e..90cbf4894d 100644 --- a/sysdeps/unix/sysv/linux/configure.ac +++ b/sysdeps/unix/sysv/linux/configure.ac @@ -108,7 +108,7 @@ fi # Until we start requiring 2.6.37+ headers, we need to check for the # availability of linux/fanotify.h for testing purposes. AC_CHECK_HEADER(linux/fanotify.h, - [DEFINES="$DEFINES -DHAVE_LINUX_FANOTIFY_H=1"], , + [AC_DEFINE(HAVE_LINUX_FANOTIFY_H)], , [/* No default includes. */]) # The result of the above test for the use of the FDE code is invalid if diff --git a/sysdeps/unix/sysv/linux/tst-fanotify.c b/sysdeps/unix/sysv/linux/tst-fanotify.c index 43d3bb2691..fb3c77eaa6 100644 --- a/sysdeps/unix/sysv/linux/tst-fanotify.c +++ b/sysdeps/unix/sysv/linux/tst-fanotify.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see . */ +#include #include #include #include -- cgit 1.4.1