$OpenBSD: patch-chromecast_browser_cast_browser_main_parts_cc,v 1.9 2017/01/26 17:08:25 robert Exp $
--- chromecast/browser/cast_browser_main_parts.cc.orig.port	Thu Dec 15 00:02:07 2016
+++ chromecast/browser/cast_browser_main_parts.cc	Tue Jan  3 20:29:58 2017
@@ -67,7 +67,7 @@
 #include <signal.h>
 #include <sys/prctl.h>
 #endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
 #include <fontconfig/fontconfig.h>
 #endif
 
@@ -226,7 +226,7 @@ DefaultCommandLineSwitch g_default_switches[] = {
 #if BUILDFLAG(IS_CAST_AUDIO_ONLY)
   { switches::kDisableGpu, "" },
 #endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
 #if defined(ARCH_CPU_X86_FAMILY)
   // This is needed for now to enable the x11 Ozone platform to work with
   // current Linux/NVidia OpenGL drivers.
@@ -366,7 +366,7 @@ void CastBrowserMainParts::PostMainMessageLoopStart() 
 }
 
 void CastBrowserMainParts::ToolkitInitialized() {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   // Without this call, the FontConfig library gets implicitly initialized
   // on the first call to FontConfig. Since it's not safe to initialize it
   // concurrently from multiple threads, we explicitly initialize it here
