$OpenBSD: patch-base_threading_platform_thread_linux_cc,v 1.2 2013/12/12 10:43:18 robert Exp $
--- base/threading/platform_thread_linux.cc.orig.port	Thu Dec  5 15:33:08 2013
+++ base/threading/platform_thread_linux.cc	Thu Dec  5 15:33:32 2013
@@ -16,7 +16,9 @@
 #include "base/tracked_objects.h"
 
 #if !defined(OS_NACL)
+#if !defined(OS_BSD)
 #include <sys/prctl.h>
+#endif
 #include <sys/resource.h>
 #include <sys/syscall.h>
 #include <sys/time.h>
@@ -48,7 +50,7 @@ void PlatformThread::SetName(const char* name) {
   ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
   tracked_objects::ThreadData::InitializeThreadContext(name);
 
-#if !defined(OS_NACL)
+#if !defined(OS_NACL) && !defined(OS_BSD)
   // On linux we can get the thread names to show up in the debugger by setting
   // the process name for the LWP.  We don't want to do this for the main
   // thread because that would rename the process, causing tools like killall
