about summary refs log tree commit diff
path: root/libio/iofdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofdopen.c')
-rw-r--r--libio/iofdopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libio/iofdopen.c b/libio/iofdopen.c
index a51bc3c49a..44be50a37d 100644
--- a/libio/iofdopen.c
+++ b/libio/iofdopen.c
@@ -30,8 +30,12 @@
 #include <fcntl.h>
 
 #ifndef _IO_fcntl
+#ifdef _LIBC
+#define _IO_fcntl __fcntl
+#else
 #define _IO_fcntl fcntl
 #endif
+#endif
 
 _IO_FILE *
 _IO_new_fdopen (fd, mode)