diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 06:15:04 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 06:15:04 +0000 |
commit | 0c6f3b0c5f6409496fcecab0819b062f36d9b113 (patch) | |
tree | aa589efa568cd3792d1890ba37a8644491ec51f0 /base/string_util_posix.h | |
parent | 71cb4cd0c41e892aac8e29fd52cd0f935573aa36 (diff) | |
download | chromium_src-0c6f3b0c5f6409496fcecab0819b062f36d9b113.zip chromium_src-0c6f3b0c5f6409496fcecab0819b062f36d9b113.tar.gz chromium_src-0c6f3b0c5f6409496fcecab0819b062f36d9b113.tar.bz2 |
OpenBSD: make it possible to build libbase.a.
This still needs a little hack. I had to run gyp_chromium this way:
CHROMIUM_GYP_FILE="base/base.gyp" build/gyp_chromium -DOS=openbsd \
-Duse_gnome_keyring=0 -Duse_system_libevent=1
And then run "gmake base".
BUG=none
Review URL: http://codereview.chromium.org/6840023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util_posix.h')
-rw-r--r-- | base/string_util_posix.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/base/string_util_posix.h b/base/string_util_posix.h index 6053ada..d238f7f 100644 --- a/base/string_util_posix.h +++ b/base/string_util_posix.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -44,8 +44,15 @@ inline int strncmp16(const char16* s1, const char16* s2, size_t count) { inline int vswprintf(wchar_t* buffer, size_t size, const wchar_t* format, va_list arguments) { +#if defined(OS_OPENBSD) + // TODO(phajdan.jr): There is a patch to add vswprintf to OpenBSD, + // http://marc.info/?l=openbsd-tech&m=130003157729839&w=2 + NOTIMPLEMENTED(); + return -1; +#else DCHECK(IsWprintfFormatPortable(format)); return ::vswprintf(buffer, size, format, arguments); +#endif } } // namespace base |