From b5c72b82b5b19a3268ea5df60b79322f7f779027 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 18 Feb 2010 16:11:37 +0000 Subject: Solaris: Second set adding in Solaris as an OS option TEST=compiles BUG=30101 Patch by James Choi . Review URL: http://codereview.chromium.org/606075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39362 0039d316-1c4b-4281-b951-d872f2087c98 --- base/base.gyp | 8 ++++---- base/file_util_posix.cc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'base') diff --git a/base/base.gyp b/base/base.gyp index 8e941a3..f4720b4 100644 --- a/base/base.gyp +++ b/base/base.gyp @@ -149,7 +149,7 @@ '../testing/gtest.gyp:gtest', ], 'conditions': [ - ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'sources!': [ 'file_version_info_unittest.cc', 'worker_pool_linux_unittest.cc', @@ -167,7 +167,7 @@ '../build/linux/system.gyp:nss', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', ], - }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" + }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris" 'sources!': [ 'message_pump_glib_unittest.cc', ] @@ -230,7 +230,7 @@ ], }, 'conditions': [ - ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'dependencies': [ # Needed to handle the #include chain: # base/test/perf_test_suite.h @@ -259,7 +259,7 @@ }, ], }], - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'targets': [ { 'target_name': 'linux_versioninfo', diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 6e8735a..590b94d 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -87,7 +87,7 @@ int CountFilesCreatedAfter(const FilePath& path, DIR* dir = opendir(path.value().c_str()); if (dir) { #if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD) && \ - !defined(OS_OPENBSD) + !defined(OS_OPENBSD) && !defined(OS_SOLARIS) #error Port warning: depending on the definition of struct dirent, \ additional space for pathname may be needed #endif @@ -645,7 +645,7 @@ bool FileEnumerator::ReadDirectory(std::vector* entries, return false; #if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD) && \ - !defined(OS_OPENBSD) + !defined(OS_OPENBSD) && !defined(OS_SOLARIS) #error Port warning: depending on the definition of struct dirent, \ additional space for pathname may be needed #endif -- cgit v1.1