summaryrefslogtreecommitdiff
path: root/libc/stdio/fmemopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/fmemopen.c')
-rw-r--r--libc/stdio/fmemopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/fmemopen.c b/libc/stdio/fmemopen.c
index 7f6021ca4..a78d56efc 100644
--- a/libc/stdio/fmemopen.c
+++ b/libc/stdio/fmemopen.c
@@ -5,6 +5,9 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
+#include <features.h>
+
+#ifdef __USE_GNU
#include "_stdio.h"
libc_hidden_proto(memcpy)
@@ -177,3 +180,4 @@ FILE *fmemopen(void *s, size_t len, const char *modes)
return NULL;
}
+#endif