Package: protobuf / 2.4.1-3

fix-ftbfs-gcc4.7-kfreebsd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix GCC 4.7 build on 'other' platforms like GNU/kFreeBSD
 Assume that all platforms in the 'other' category will have unistd.h;
 as of GCC 4.7 they are going to have to include it.
Author: Steven Chamberlain <steven@pyro.eu.org>

--- protobuf-2.4.1.orig/gtest/include/gtest/internal/gtest-port.h	2011-04-30 18:22:13.000000000 +0100
+++ protobuf-2.4.1/gtest/include/gtest/internal/gtest-port.h	2012-06-11 14:18:19.000000000 +0100
@@ -231,6 +231,9 @@
 
 #else
 
+// Assume other platforms have unistd.h
+#include <unistd.h>  // NOLINT
+
 // <regex.h> may not be available on this platform.  Use our own
 // simple regex implementation instead.
 #define GTEST_USES_SIMPLE_RE 1