$OpenBSD: patch-base_string_util_posix_h,v 1.2 2011/02/08 09:43:02 espie Exp $ --- base/string_util_posix.h.orig Fri Jan 21 10:20:15 2011 +++ base/string_util_posix.h Mon Jan 24 00:01:36 2011 @@ -45,7 +45,12 @@ inline int strncmp16(const char16* s1, const char16* s inline int vswprintf(wchar_t* buffer, size_t size, const wchar_t* format, va_list arguments) { DCHECK(IsWprintfFormatPortable(format)); +#if defined(OS_OPENBSD) + // OpenBSD does not have a wide-char equivalent + return ::vsnprintf((char *)buffer, size, (const char *)format, arguments); +#else return ::vswprintf(buffer, size, format, arguments); +#endif } } // namespace base