Re: Bug#675837: protobuf: FTBFS[!linux]: error: 'isatty' was not declared in this scope
tags 675837 + patch
usertags 675837 ftbfs-gcc-4.7
My attached patch should fix this. Tested with a successful build on
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.
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 <firstname.lastname@example.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 @@
+// 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