aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/tst-fanotify.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-02-24 18:44:10 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-02-24 18:44:10 +0000
commitf4a2740a69d34b3ab0a7ecc7d4785b4b6b68e7cf (patch)
tree15362ca10a4d6846e15355e242db84a90e8e16d3 /sysdeps/unix/sysv/linux/tst-fanotify.c
parent5b4ecd3f95695ef593e4474b4ab5a117291ba5fc (diff)
downloadglibc-f4a2740a69d34b3ab0a7ecc7d4785b4b6b68e7cf.zip
glibc-f4a2740a69d34b3ab0a7ecc7d4785b4b6b68e7cf.tar.gz
glibc-f4a2740a69d34b3ab0a7ecc7d4785b4b6b68e7cf.tar.bz2
Remove linux/fanotify.h configure test.
Now we require Linux 3.2 or later kernel headers everywhere, the configure test for <linux/fanotify.h> is obsolete; this patch removes it. Tested for x86_64. * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not test for header. * sysdeps/unix/sysv/linux/configure: Regenerated. * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef. * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]: Remove conditional code. [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-fanotify.c')
-rw-r--r--sysdeps/unix/sysv/linux/tst-fanotify.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-fanotify.c b/sysdeps/unix/sysv/linux/tst-fanotify.c
index 8e8c10b..ed3a951 100644
--- a/sysdeps/unix/sysv/linux/tst-fanotify.c
+++ b/sysdeps/unix/sysv/linux/tst-fanotify.c
@@ -20,18 +20,6 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
-
-#ifndef HAVE_LINUX_FANOTIFY_H
-
-static int
-do_test (void)
-{
- puts ("SKIP: missing support for fanotify due to old kernel headers");
- return 0;
-}
-
-#else
-
#include <sys/fanotify.h>
static int
@@ -69,7 +57,5 @@ do_test (void)
return 0;
}
-#endif
-
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"