]> git.pld-linux.org Git - packages/coreutils.git/commitdiff
- include <sys/inotify.h> when detecting inotify, needed when inotify support
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 12 Oct 2011 08:05:30 +0000 (08:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  inlined in header instead of glibc

Changed files:
    inotify.patch -> 1.1

inotify.patch [new file with mode: 0644]

diff --git a/inotify.patch b/inotify.patch
new file mode 100644 (file)
index 0000000..51bb49a
--- /dev/null
@@ -0,0 +1,22 @@
+--- coreutils-8.10/m4/jm-macros.m4     2011-10-12 09:57:39.122777938 +0300
++++ coreutils-8.10/m4/jm-macros.m4     2011-10-12 10:33:51.986782716 +0300
+@@ -67,9 +67,16 @@
+   AC_CHECK_FUNCS_ONCE([nl_langinfo])
+   # Used by tail.c.
+-  AC_CHECK_FUNCS([inotify_init],
+-    [AC_DEFINE([HAVE_INOTIFY], [1],
+-     [Define to 1 if you have usable inotify support.])])
++  AC_RUN_IFELSE(
++    AC_LANG_PROGRAM([[#include <sys/inotify.h>]],
++                    [[return (-1 == inotify_init());]]
++    ),
++    [
++      AC_MSG_RESULT([yes])
++      AC_DEFINE([HAVE_INOTIFY], [1],
++       [Define to 1 if you have usable inotify support.])
++    ], [AC_MSG_RESULT([no])]
++  )
+   AC_CHECK_FUNCS_ONCE( \
+     endgrent \
This page took 0.339857 seconds and 4 git commands to generate.