[incron patch] remove unneeded inotify #include's

From: Adrian Bunk <bunk_at_stusta.de>
Date: Mon, 9 Apr 2012 14:05:00 +0300

sys/inotify.h is the one and only header needed.

Index: inotify-cxx.h
===================================================================
--- inotify-cxx.h (revision 112)
+++ inotify-cxx.h (working copy)
@@ -32,14 +32,8 @@
 #include <map>
 
 // Please ensure that the following headers take the right place
-#include <sys/syscall.h>
 #include <sys/inotify.h>
 
-// Use this if syscalls not defined
-#ifndef __NR_inotify_init
-#include <sys/inotify-syscalls.h>
-#endif // __NR_inotify_init
-
 /// Event struct size
 #define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event))
 
Index: README
===================================================================
--- README (revision 112)
+++ README (working copy)
@@ -23,8 +23,7 @@
 
 2. Requirements
 * Linux kernel 2.6.13 or later (with inotify compiled in)
-* inotify headers (inotify.h, sometimes inotify-syscalls.h) installed in
- <INCLUDE_DIR>/sys. The most common place is /usr/include/sys.
+* a C library providing sys/inotify.h (e.g. glibc >= 2.4)
 * GCC 4.x compiler (probably works also with GCC 3.4, possibly with
   older versions too)
 
Received on Tue Jun 05 2012 - 22:14:21 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST