Signed-off-by: Mike Frysinger <vapier_at_gentoo.org>
--- inotify-cxx.cpp | 6 ++++++ inotify-cxx.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inotify-cxx.cpp b/inotify-cxx.cpp index 7870e82..e6981ea 100644 --- a/inotify-cxx.cpp +++ b/inotify-cxx.cpp @@ -24,6 +24,12 @@ #include <unistd.h> #include <fcntl.h> +// Use this if syscalls not defined +#include <sys/syscall.h> +#ifndef __NR_inotify_init +#include <sys/inotify-syscalls.h> +#endif // __NR_inotify_init + #include "inotify-cxx.h" /// procfs inotify base path diff --git a/inotify-cxx.h b/inotify-cxx.h index 4170972..dfdeddf 100644 --- a/inotify-cxx.h +++ b/inotify-cxx.h @@ -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)) -- 1.6.5.1Received 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