summaryrefslogtreecommitdiff
path: root/sysutils/logstalgia/files/patch-src_FileWatcher_FileWatcherOSX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/logstalgia/files/patch-src_FileWatcher_FileWatcherOSX.cpp')
-rw-r--r--sysutils/logstalgia/files/patch-src_FileWatcher_FileWatcherOSX.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/logstalgia/files/patch-src_FileWatcher_FileWatcherOSX.cpp b/sysutils/logstalgia/files/patch-src_FileWatcher_FileWatcherOSX.cpp
new file mode 100644
index 000000000000..65cc9d152e6a
--- /dev/null
+++ b/sysutils/logstalgia/files/patch-src_FileWatcher_FileWatcherOSX.cpp
@@ -0,0 +1,14 @@
+--- src/FileWatcher/FileWatcherOSX.cpp.orig 2017-10-01 03:38:27 UTC
++++ src/FileWatcher/FileWatcherOSX.cpp
+@@ -229,7 +229,11 @@ namespace FW
+ void addAll()
+ {
+ // add base dir
++#ifdef O_EVTONLY
+ int fd = open(mDirName.c_str(), O_RDONLY | O_EVTONLY);
++#else
++ int fd = open(mDirName.c_str(), O_RDONLY );
++#endif
+ EV_SET(&mChangeList[0], fd, EVFILT_VNODE,
+ EV_ADD | EV_ENABLE | EV_ONESHOT,
+ NOTE_DELETE | NOTE_EXTEND | NOTE_WRITE | NOTE_ATTRIB,