diff options
author | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 23:35:27 +0000 |
---|---|---|
committer | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 23:35:27 +0000 |
commit | d0509a582d6b967bcc6874a0e413d0bf6633a5ce (patch) | |
tree | 35bef2e20af5f1401ca15ab91935607d2dfb6e8f /base | |
parent | 946be758f0a107dc9c701583d6b35f358afed804 (diff) | |
download | chromium_src-d0509a582d6b967bcc6874a0e413d0bf6633a5ce.zip chromium_src-d0509a582d6b967bcc6874a0e413d0bf6633a5ce.tar.gz chromium_src-d0509a582d6b967bcc6874a0e413d0bf6633a5ce.tar.bz2 |
rename file_path_watcher_mac to file_path_watcher_kqueue
so that other platforms (*bsd) with kqueue can use it
BUG=
TEST=
Review URL: http://codereview.chromium.org/8393013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/base.gypi | 5 | ||||
-rw-r--r-- | base/files/file_path_watcher_kqueue.cc (renamed from base/files/file_path_watcher_mac.cc) | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/base/base.gypi b/base/base.gypi index 668516e..8fa20dc 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -111,8 +111,8 @@ 'file_version_info_win.h', 'files/file_path_watcher.cc', 'files/file_path_watcher.h', + 'files/file_path_watcher_kqueue.cc', 'files/file_path_watcher_linux.cc', - 'files/file_path_watcher_mac.cc', 'files/file_path_watcher_stub.cc', 'files/file_path_watcher_win.cc', 'float_util.h', @@ -481,6 +481,7 @@ 'sources!': [ 'event_recorder_stubs.cc', 'file_descriptor_shuffle.cc', + 'files/file_path_watcher_kqueue.cc', 'files/file_path_watcher_stub.cc', 'message_pump_libevent.cc', # Not using sha1_win.cc because it may have caused a @@ -491,6 +492,7 @@ },], [ 'OS == "linux"', { 'sources!': [ + 'files/file_path_watcher_kqueue.cc', 'files/file_path_watcher_stub.cc', ], }], @@ -502,6 +504,7 @@ [ 'OS == "openbsd"', { 'sources/': [ ['exclude', '^files/file_path_watcher_linux\\.cc$'], + ['exclude', '^files/file_path_watcher_stub\\.cc$'], ['exclude', '^file_util_linux\\.cc$'], ['exclude', '^process_linux\\.cc$'], ['exclude', '^process_util_linux\\.cc$'], diff --git a/base/files/file_path_watcher_mac.cc b/base/files/file_path_watcher_kqueue.cc index 3413e8a..d4ddb7d 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 { |