]> git.pld-linux.org Git - packages/coreutils.git/blob - inotify.patch
up to 9.5
[packages/coreutils.git] / inotify.patch
1 --- coreutils-8.10/m4/jm-macros.m4      2011-10-12 09:57:39.122777938 +0300
2 +++ coreutils-8.10/m4/jm-macros.m4      2011-10-12 10:33:51.986782716 +0300
3 @@ -67,9 +67,16 @@
4    AC_CHECK_FUNCS_ONCE([nl_langinfo])
5  
6    # Used by tail.c.
7 -  AC_CHECK_FUNCS([inotify_init],
8 -    [AC_DEFINE([HAVE_INOTIFY], [1],
9 -     [Define to 1 if you have usable inotify support.])])
10 +  AC_RUN_IFELSE(
11 +    AC_LANG_PROGRAM([[#include <sys/inotify.h>]],
12 +                    [[return (-1 == inotify_init());]]
13 +    ),
14 +    [
15 +      AC_MSG_RESULT([yes])
16 +      AC_DEFINE([HAVE_INOTIFY], [1],
17 +       [Define to 1 if you have usable inotify support.])
18 +    ], [AC_MSG_RESULT([no])]
19 +  )
20  
21    AC_CHECK_FUNCS_ONCE( \
22      endgrent \
This page took 0.060725 seconds and 3 git commands to generate.