tags 675837 + patch
user debian-...@lists.debian.org
usertags 675837 ftbfs-gcc-4.7
thanks

Hi iustin,

My attached patch should fix this.  Tested with a successful build on
kfreebsd-i386.

Like in some of the other source files, I'm assuming that all platforms
in the 'other' category will have unistd.h;  and as of GCC-4.7 they are
going to have to include it.

Thanks!
Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org
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 <ste...@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

Reply via email to