summaryrefslogtreecommitdiff
path: root/libc/stdio/open_memstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/open_memstream.c')
-rw-r--r--libc/stdio/open_memstream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/open_memstream.c b/libc/stdio/open_memstream.c
index 5ba09ea7c..25c2f9f61 100644
--- a/libc/stdio/open_memstream.c
+++ b/libc/stdio/open_memstream.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)
@@ -166,3 +169,4 @@ FILE *open_memstream(char **__restrict bufloc, size_t *__restrict sizeloc)
return NULL;
}
libc_hidden_def(open_memstream)
+#endif