$OpenBSD: patch-content_browser_zygote_host_linux_cc,v 1.6 2011/12/14 16:58:19 robert Exp $
--- content/browser/zygote_host_linux.cc.orig	Wed Dec  7 09:01:17 2011
+++ content/browser/zygote_host_linux.cc	Tue Dec 13 21:23:12 2011
@@ -273,6 +273,7 @@ pid_t ZygoteHost::ForkRequest(
       return base::kNullProcessHandle;
   }
 
+#if defined(OS_LINUX)
   // This is just a starting score for a renderer or extension (the
   // only types of processes that will be started this way).  It will
   // get adjusted as time goes on.  (This is the same value as
@@ -280,10 +281,12 @@ pid_t ZygoteHost::ForkRequest(
   // that's not something we can include here.)
   const int kLowestRendererOomScore = 300;
   AdjustRendererOOMScore(pid, kLowestRendererOomScore);
+#endif
 
   return pid;
 }
 
+#if defined(OS_LINUX)
 void ZygoteHost::AdjustRendererOOMScore(base::ProcessHandle pid, int score) {
   // 1) You can't change the oom_score_adj of a non-dumpable process
   //    (EPERM) unless you're root. Because of this, we can't set the
@@ -350,6 +353,7 @@ void ZygoteHost::AdjustRendererOOMScore(base::ProcessH
       PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid;
   }
 }
+#endif
 
 void ZygoteHost::EnsureProcessTerminated(pid_t process) {
   DCHECK(init_);
