openbsd-ports/www/chromium/patches/patch-content_renderer_renderer_glue_cc

22 lines
824 B
Plaintext

$OpenBSD: patch-content_renderer_renderer_glue_cc,v 1.1 2011/06/08 20:36:56 robert Exp $
--- content/renderer/renderer_glue.cc.orig Wed Jun 8 12:10:26 2011
+++ content/renderer/renderer_glue.cc Wed Jun 8 12:10:40 2011
@@ -34,7 +34,7 @@
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/websocketstreamhandle_bridge.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
#include "content/renderer/renderer_sandbox_support_linux.h"
#endif
@@ -259,7 +259,7 @@ void EnableSpdy(bool enable) {
RenderThread::current()->EnableSpdy(enable);
}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
int MatchFontWithFallback(const std::string& face, bool bold,
bool italic, int charset) {
return renderer_sandbox_support::MatchFontWithFallback(