9 Apr 2012 13:05
[incron patch] remove unneeded inotify #include's
sys/inotify.h is the one and only header needed. Index: inotify-cxx.h =================================================================== --- inotify-cxx.h (revision 112) +++ inotify-cxx.h (working copy) <at> <at> -32,14 +32,8 <at> <at> #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) <at> <at> -23,8 +23,7 <at> <at> 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)
RSS Feed