Index: base/files/file_path_watcher_kqueue.cc |
diff --git a/base/files/file_path_watcher_mac.cc b/base/files/file_path_watcher_kqueue.cc |
similarity index 99% |
rename from base/files/file_path_watcher_mac.cc |
rename to base/files/file_path_watcher_kqueue.cc |
index 3413e8aaa231bc629b061e07b7757ea289263825..d4ddb7dae62f7817a60e5faab621043fa8c06973 100644 |
--- a/base/files/file_path_watcher_mac.cc |
+++ b/base/files/file_path_watcher_kqueue.cc |
@@ -16,6 +16,14 @@ |
#include "base/message_loop_proxy.h" |
#include "base/stringprintf.h" |
+// On some platforms these are not defined. |
+#if !defined(EV_RECEIPT) |
+#define EV_RECEIPT 0 |
+#endif |
+#if !defined(O_EVTONLY) |
+#define O_EVTONLY O_RDONLY |
+#endif |
+ |
namespace base { |
namespace files { |