summaryrefslogtreecommitdiff
path: root/inputmethod/mozc-server/patches/patch-protobuf_protobuf.gyp
blob: 9470ea409cd3c9eae60cbec5ae5fb17490ca060d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-protobuf_protobuf.gyp,v 1.3 2014/01/19 01:18:50 ryoon Exp $

--- protobuf/protobuf.gyp.orig	2014-01-06 07:10:31.000000000 +0000
+++ protobuf/protobuf.gyp
@@ -161,7 +161,7 @@
           ],
           'conditions': [
             # for gcc and clang
-            ['OS=="linux" or OS=="mac"', {
+            ['OS=="linux" or OS=="mac" or OS=="netbsd"', {
               'cflags': [
                 '-Wno-conversion-null',  # coded_stream.cc uses NULL to bool.
                 '-Wno-unused-function',
@@ -201,7 +201,7 @@
         '<(protobuf_root)/src',
       ],
       'conditions': [
-        ['OS=="linux"', {
+        ['OS=="linux" or OS=="netbsd"', {
           'conditions': [
             ['use_libprotobuf!=1', {
               'cflags': [
@@ -237,7 +237,7 @@
       },
       'conditions': [
         # use system-installed protoc on Linux
-        ['OS!="linux"', {
+        ['OS!="linux" and OS!="netbsd"', {
           'includes' : [
             '../gyp/install_build_tool.gypi',
           ],