THRIFT-3512 c_glib: Build fails due to missing features.h

This closes #763


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

Branch: refs/heads/master
Commit: 56cf779591b05cb68f83c8b71897dca7ec6d487c
Parents: 117af5c
Author: Simon South <[email protected]>
Authored: Tue Dec 29 12:02:18 2015 -0500
Committer: Nobuaki Sukegawa <[email protected]>
Committed: Sun Jan 3 02:54:25 2016 +0900

----------------------------------------------------------------------
 lib/c_glib/test/testbinaryprotocol.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/56cf7795/lib/c_glib/test/testbinaryprotocol.c
----------------------------------------------------------------------
diff --git a/lib/c_glib/test/testbinaryprotocol.c 
b/lib/c_glib/test/testbinaryprotocol.c
index cd65501..fa1d447 100755
--- a/lib/c_glib/test/testbinaryprotocol.c
+++ b/lib/c_glib/test/testbinaryprotocol.c
@@ -20,12 +20,8 @@
 /* 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__
+#include <features.h>
 #define __NO_STRING_INLINES 1
 #endif
 

Reply via email to