[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28-134-g51f3150

Volker Lendecke vl at samba.org
Mon Feb 25 11:55:32 GMT 2008


The branch, v3-0-test has been updated
       via  51f315065bfccc155aa19feaf5b65110b639f8d1 (commit)
      from  81b392b353b0d4812adc0ee8c767251a5bd738e4 (commit)

http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-0-test


- Log -----------------------------------------------------------------
commit 51f315065bfccc155aa19feaf5b65110b639f8d1
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 25 12:52:55 2008 +0100

    Fix inotify detection
    
    Bug 5271 -- thanks to Tiziano Müller

-----------------------------------------------------------------------

Summary of changes:
 source/configure.in          |    2 +-
 source/smbd/notify_inotify.c |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/configure.in b/source/configure.in
index d3fb63b..9c31de4 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -2541,7 +2541,7 @@ fi
 
 AC_CACHE_CHECK([for inotify support],samba_cv_HAVE_INOTIFY,[
 AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h)
-AC_CHECK_FUNC(inotify_init)
+AC_CHECK_FUNCS(inotify_init)
 AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
 ],
 samba_cv_HAVE_INOTIFY=yes,
diff --git a/source/smbd/notify_inotify.c b/source/smbd/notify_inotify.c
index 1b1bad7..a9eb221 100644
--- a/source/smbd/notify_inotify.c
+++ b/source/smbd/notify_inotify.c
@@ -30,10 +30,12 @@
 #include <asm/types.h>
 #endif
 
+#ifndef HAVE_INOTIFY_INIT
+
 #include <linux/inotify.h>
 #include <asm/unistd.h>
 
-#ifndef HAVE_INOTIFY_INIT
+
 /*
   glibc doesn't define these functions yet (as of March 2006)
 */
@@ -51,6 +53,10 @@ static int inotify_rm_watch(int fd, int wd)
 {
 	return syscall(__NR_inotify_rm_watch, fd, wd);
 }
+#else
+
+#include <sys/inotify.h>
+
 #endif
 
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list