diff options
Diffstat (limited to 'libc/sysdeps/unix/sysv/linux/tst-fanotify.c')
-rw-r--r-- | libc/sysdeps/unix/sysv/linux/tst-fanotify.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libc/sysdeps/unix/sysv/linux/tst-fanotify.c b/libc/sysdeps/unix/sysv/linux/tst-fanotify.c index ad9836b58..43d3bb269 100644 --- a/libc/sysdeps/unix/sysv/linux/tst-fanotify.c +++ b/libc/sysdeps/unix/sysv/linux/tst-fanotify.c @@ -1,5 +1,5 @@ /* Basic fanotify test. - Copyright (C) 2013 Free Software Foundation, Inc. + Copyright (C) 2013-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,6 +19,18 @@ #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 @@ -56,5 +68,7 @@ do_test (void) return 0; } +#endif + #define TEST_FUNCTION do_test () #include "../test-skeleton.c" |