]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tst-fanotify: switch to AC_DEFINE
authorMike Frysinger <vapier@gentoo.org>
Tue, 31 Dec 2013 16:36:54 +0000 (11:36 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 4 Jan 2014 13:34:01 +0000 (08:34 -0500)
Reported-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog
config.h.in
sysdeps/unix/sysv/linux/configure
sysdeps/unix/sysv/linux/configure.ac
sysdeps/unix/sysv/linux/tst-fanotify.c

index 0e6850d43a1d762ea776777823b1a4f304022d89..ddfb69a2fd63cae3b8f8827696157d7ef79e2037 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-01-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
+       * sysdeps/unix/sysv/linux/configure: Regenerated.
+       * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
+       * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
+
 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #16390]
index f6151c55bfd9f4ca4f214e2516ca1c00f19087b4..40797e7fdcb1a0842a2da1adabcc84391ad7e0f3 100644 (file)
 /* Define if STT_GNU_IFUNC support actually works.  */
 #undef HAVE_IFUNC
 
+/* Define if linux/fanotify.h is available.  */
+#undef HAVE_LINUX_FANOTIFY_H
+
 /*
 \f */
 
index ab0f03c35e58ed066635a341fb921c3b6ee36749..d5ee4ef5d530422a2c409bb55c9c194a35e0c5ea 100644 (file)
@@ -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
 
 
index 6d6053f27e39421bf2b75fc0f02a1a71e398d088..90cbf4894d4358bda89bff5365e9fa66087d1ebe 100644 (file)
@@ -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
index 43d3bb2691bf8f182692f6051e6ba787b74180d7..fb3c77eaa6b078d7de65dc624dcae59979f4601d 100644 (file)
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <config.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>