openbsd-ports/www/chromium/patches/patch-base_strings_safe_sprintf_cc
2014-03-11 14:52:01 +00:00

13 lines
809 B
Plaintext

$OpenBSD: patch-base_strings_safe_sprintf_cc,v 1.1 2014/03/11 14:52:01 robert Exp $
--- base/strings/safe_sprintf.cc.orig.port Sat Feb 22 12:25:40 2014
+++ base/strings/safe_sprintf.cc Sat Feb 22 12:25:47 2014
@@ -111,7 +111,7 @@ class Buffer {
// static_assert only works with compile-time constants, but mac uses
// libstdc++4.2 and android uses stlport, which both don't mark
// numeric_limits::max() as constexp.
-#if __cplusplus >= 201103 && !defined(OS_ANDROID) && !defined(OS_MACOSX) && !defined(OS_IOS)
+#if __cplusplus >= 201103 && !defined(OS_ANDROID) && !defined(OS_MACOSX) && !defined(OS_IOS) && !defined(OS_BSD)
COMPILE_ASSERT(kSSizeMaxConst == \
static_cast<size_t>(std::numeric_limits<ssize_t>::max()),
kSSizeMax_is_the_max_value_of_an_ssize_t);