summaryrefslogtreecommitdiff
path: root/libc/stdio/fopencookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/fopencookie.c')
-rw-r--r--libc/stdio/fopencookie.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/fopencookie.c b/libc/stdio/fopencookie.c
index d754deba5..0b7ed84b1 100644
--- a/libc/stdio/fopencookie.c
+++ b/libc/stdio/fopencookie.c
@@ -5,6 +5,9 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
+#include <features.h>
+
+#ifdef __USE_GNU
#include "_stdio.h"
#ifndef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__
@@ -61,3 +64,4 @@ FILE *_fopencookie(void * __restrict cookie, const char * __restrict mode,
#ifndef __BCC__
libc_hidden_def(fopencookie)
#endif
+#endif