Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore


Modified Files:
        configure.in 


Log Message:
inotify is updated to support only kernel 2.6.13 with an updated
kernel-headers. It should work with some older revisions of inotify with
some hacking, but I don't have different versions to check with.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/configure.in,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -3 -r1.102 -r1.103
--- configure.in        27 Aug 2005 11:50:49 -0000      1.102
+++ configure.in        29 Aug 2005 15:15:59 -0000      1.103
@@ -865,10 +865,15 @@
 ]
 )
 
+dnl It's hard to find a good test on how to check the correct
+dnl inotify version. They changed the headers a lot.
+dnl in kernel 2.6.13 __NR_inotify_init was added to the defined syscalls
+dnl in asm/unistd.h
+dnl so with this check you need a very new kernel and kernel-headers!
 if test "x$use_inotify" = "xyes"; then
   AC_TRY_COMPILE(
-    [#include <linux/inotify.h>],
-    [struct inotify_watch_request request;request.fd = 0; request.mask = 0;],
+    [#include <asm/unistd.h>],
+    [int i = __NR_inotify_init;],
     [
       AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
       use_inotify="yes"




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to