$OpenBSD: patch-content_renderer_devtools_v8_sampling_profiler_cc,v 1.4 2016/05/27 06:28:21 robert Exp $
--- content/renderer/devtools/v8_sampling_profiler.cc.orig.port	Wed May 25 21:01:01 2016
+++ content/renderer/devtools/v8_sampling_profiler.cc	Thu May 26 08:09:46 2016
@@ -21,7 +21,7 @@
 #include "content/renderer/render_thread_impl.h"
 #include "v8/include/v8.h"
 
-#if defined(OS_POSIX)
+#if defined(OS_POSIX) && !defined(OS_BSD)
 #include <signal.h>
 #define USE_SIGNALS
 #endif
@@ -205,7 +205,10 @@ class Sampler {
   static const unsigned kNumberOfSamples = 10;
   typedef LockFreeCircularQueue<SampleRecord, kNumberOfSamples> SamplingQueue;
 
+#ifdef USE_SIGNALS
   PlatformData platform_data_;
+#endif
+
   Isolate* isolate_;
   scoped_ptr<SamplingQueue> samples_data_;
   base::subtle::Atomic32 code_added_events_count_;
@@ -299,6 +302,7 @@ void Sampler::DoSample(const v8::RegisterState& state)
 }
 
 void Sampler::InjectPendingEvents() {
+#ifdef USE_SIGNALS
   SampleRecord* record = samples_data_->Peek();
   while (record) {
     TRACE_EVENT_SAMPLE_WITH_TID_AND_TIMESTAMP1(
@@ -310,6 +314,7 @@ void Sampler::InjectPendingEvents() {
     record = samples_data_->Peek();
     base::subtle::NoBarrier_AtomicIncrement(&samples_count_, 1);
   }
+#endif
 }
 
 // static
