mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
tst-fanotify: switch to AC_DEFINE
Reported-by: Joseph S. Myers <joseph@codesourcery.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
22562bb222
commit
20f4a8d993
@ -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]
|
||||
|
@ -192,6 +192,9 @@
|
||||
/* Define if STT_GNU_IFUNC support actually works. */
|
||||
#undef HAVE_IFUNC
|
||||
|
||||
/* Define if linux/fanotify.h is available. */
|
||||
#undef HAVE_LINUX_FANOTIFY_H
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
|
3
sysdeps/unix/sysv/linux/configure
vendored
3
sysdeps/unix/sysv/linux/configure
vendored
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user