$OpenBSD: patch-build_common_gypi,v 1.12 2011/12/14 16:58:19 robert Exp $
--- build/common.gypi.orig	Tue Dec 13 21:29:10 2011
+++ build/common.gypi	Tue Dec 13 21:40:53 2011
@@ -1149,9 +1149,11 @@
               '-Wextra',
               '-Werror',
             ],
-            'cflags': [
+            'ccflags': [
               # Don't warn about hash_map in third-party code.
               '-Wno-deprecated',
+            ],
+            'cflags': [
               # Don't warn about printf format problems.
               # This is off by default in gcc but on in Ubuntu's gcc(!).
               '-Wno-format',
@@ -1242,7 +1244,10 @@
               ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'],
             ],
           }],
-          ['OS!="linux"', {
+          # Do not exclude the linux files on OpenBSD since most of them can be
+          # shared at this point.
+          # In case a file is not needed, it is going to be excluded later on.
+          ['OS!="linux" and OS!="openbsd"', {
             'sources/': [
               ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
               ['exclude', '(^|/)linux/'],
