diff options
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 |