You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2015/09/19 20:52:54 UTC

thrift git commit: THRIFT-3326 Tests do not compile under *BSD

Repository: thrift
Updated Branches:
  refs/heads/master 6857b7fe9 -> ff4a8edd5


THRIFT-3326 Tests do not compile under *BSD

Patch: Joao Neves


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/ff4a8edd
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/ff4a8edd
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/ff4a8edd

Branch: refs/heads/master
Commit: ff4a8edd50621fb6aab7dbbf6968d4322700ed7d
Parents: 6857b7f
Author: Roger Meier <ro...@apache.org>
Authored: Sat Sep 19 20:49:50 2015 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Sat Sep 19 20:49:50 2015 +0200

----------------------------------------------------------------------
 lib/c_glib/test/testbinaryprotocol.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/ff4a8edd/lib/c_glib/test/testbinaryprotocol.c
----------------------------------------------------------------------
diff --git a/lib/c_glib/test/testbinaryprotocol.c b/lib/c_glib/test/testbinaryprotocol.c
index 517fd25..cd65501 100755
--- a/lib/c_glib/test/testbinaryprotocol.c
+++ b/lib/c_glib/test/testbinaryprotocol.c
@@ -20,7 +20,11 @@
 /* Disable string-function optimizations when glibc is used, as these produce
    compiler warnings about string length when a string function is used inside
    a call to assert () */
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && \
+    !defined(__OpenBSD__) && !defined(__NetBSD__)
 #include <features.h>
+#endif
+
 #ifdef __GLIBC__
 #define __NO_STRING_INLINES 1
 #endif