summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authorpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-25 23:54:54 +0000
committerpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-25 23:54:54 +0000
commit8d5788267bcd591842932fd8761813c7fac3d987 (patch)
treef585dbb8cc13a244e32cc76ee4a24e89d33bab57 /base/file_util_posix.cc
parent93f0c77c33ac138c30a019a6c67de53d23810db0 (diff)
downloadchromium_src-8d5788267bcd591842932fd8761813c7fac3d987.zip
chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.tar.gz
chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.tar.bz2
OpenBSD/FreeBSD ifdefs and GYP changes for base/
Based on original work by Sprewell and Ben Laurie on FreeBSD port Review URL: http://codereview.chromium.org/548129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 0436c73..d7df8a0 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -85,7 +85,8 @@ int CountFilesCreatedAfter(const FilePath& path,
DIR* dir = opendir(path.value().c_str());
if (dir) {
-#if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD)
+#if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD) && \
+ !defined(OS_OPENBSD)
#error Port warning: depending on the definition of struct dirent, \
additional space for pathname may be needed
#endif
@@ -628,7 +629,8 @@ bool FileEnumerator::ReadDirectory(std::vector<DirectoryEntryInfo>* entries,
if (!dir)
return false;
-#if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD)
+#if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD) && \
+ !defined(OS_OPENBSD)
#error Port warning: depending on the definition of struct dirent, \
additional space for pathname may be needed
#endif