THRIFT-3512 c_glib: Build fails due to missing features.h
This closes #763
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