summaryrefslogtreecommitdiff
path: root/libc/stdio/getdelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/getdelim.c')
-rw-r--r--libc/stdio/getdelim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/getdelim.c b/libc/stdio/getdelim.c
index a00cc1e6f..21c86f400 100644
--- a/libc/stdio/getdelim.c
+++ b/libc/stdio/getdelim.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(getdelim)
@@ -78,3 +81,4 @@ ssize_t getdelim(char **__restrict lineptr, size_t *__restrict n,
return pos;
}
libc_hidden_def(getdelim)
+#endif