diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:30 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:30 +0200 |
commit | c0fce877c478ddbf71a1b651c789e5ea00a00144 (patch) | |
tree | de01b0ae8fd296bd24fbca54a80f2f0ba071d461 /shared/inotify/inotify-cxx.cpp | |
parent | 3.3 (diff) | |
download | FreeFileSync-c0fce877c478ddbf71a1b651c789e5ea00a00144.tar.gz FreeFileSync-c0fce877c478ddbf71a1b651c789e5ea00a00144.tar.bz2 FreeFileSync-c0fce877c478ddbf71a1b651c789e5ea00a00144.zip |
3.4
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" |