diff options
Diffstat (limited to 'shared/inotify/inotify-cxx.cpp')
-rw-r--r-- | shared/inotify/inotify-cxx.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/shared/inotify/inotify-cxx.cpp b/shared/inotify/inotify-cxx.cpp index 7c523afb..689612ac 100644 --- a/shared/inotify/inotify-cxx.cpp +++ b/shared/inotify/inotify-cxx.cpp @@ -5,7 +5,7 @@ * * inotify C++ interface * - * Copyright (C) 2006, 2007 Lukas Jelinek <lukas@aiken.cz> + * Copyright (C) 2006, 2007, 2009 Lukas Jelinek <lukas@aiken.cz> * * This program is free software; you can redistribute it and/or * modify it under the terms of one of the following licenses: @@ -16,15 +16,24 @@ * * If you want to help with choosing the best license for you, * please visit http://www.gnu.org/licenses/license-list.html. + * + * Credits: + * Mike Frysinger (cleanup of includes) * */ - -//added by ZenJu -#include <cstdio> + #include <errno.h> #include <unistd.h> #include <fcntl.h> +#include <fstream> + +#include <sys/syscall.h> + +// Use this if syscalls not defined +#ifndef __NR_inotify_init +#include <sys/inotify-syscalls.h> +#endif // __NR_inotify_init #include "inotify-cxx.h" |