diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 23:19:10 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 23:19:10 +0000 |
commit | 398a31626d8c0e41cd9f39f2ee474342d3b36b8a (patch) | |
tree | 8eb60e404d402e9ac3c586ba3d6c40fc2fb23c63 /base | |
parent | 24a6c820448c725ecbeffbbb91d2be5f09d00e06 (diff) | |
download | chromium_src-398a31626d8c0e41cd9f39f2ee474342d3b36b8a.zip chromium_src-398a31626d8c0e41cd9f39f2ee474342d3b36b8a.tar.gz chromium_src-398a31626d8c0e41cd9f39f2ee474342d3b36b8a.tar.bz2 |
Linux: build fix for systems without inotify headers
Review URL: http://codereview.chromium.org/42363
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/base.gyp | 11 | ||||
-rw-r--r-- | base/directory_watcher_stub.cc | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/base/base.gyp b/base/base.gyp index 70efc3d..e805b27 100644 --- a/base/base.gyp +++ b/base/base.gyp @@ -331,6 +331,17 @@ ], } ], + [ 'GENERATOR == "quentin"', { + # Quentin builds don't have a recent enough glibc to include the + # inotify headers + 'sources!': [ + 'directory_watcher_inotify.cc', + ], + 'sources': [ + 'directory_watcher_stub.cc', + ], + }, + ], [ 'OS == "mac"', { 'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ], 'sources!': [ diff --git a/base/directory_watcher_stub.cc b/base/directory_watcher_stub.cc new file mode 100644 index 0000000..a92a84c --- /dev/null +++ b/base/directory_watcher_stub.cc @@ -0,0 +1,20 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file exists for Linux systems which don't have the inotify headers, and +// thus cannot build directory_watcher_inotify.cc + +#include "base/directory_watcher.h" + +class DirectoryWatcherImpl : public DirectoryWatcher::PlatformDelegate { + public: + virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate, + bool recursive) { + return false; + } +}; + +DirectoryWatcher::DirectoryWatcher() { + impl_ = new DirectoryWatcherImpl(); +} |