about summary refs log tree commit diff
path: root/hurd/fopenport.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/fopenport.c')
-rw-r--r--hurd/fopenport.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hurd/fopenport.c b/hurd/fopenport.c
index 9b8afdd9aa..869b3917bf 100644
--- a/hurd/fopenport.c
+++ b/hurd/fopenport.c
@@ -101,7 +101,10 @@ closeio (void *cookie)
   return 0;
 }
 
-#ifndef USE_IN_LIBIO
+#ifdef USE_IN_LIBIO
+#include "../libio/libioP.h"
+#define fopencookie _IO_fopencookie
+#else
 #define cookie_io_functions_t __io_functions
 #endif
 static const cookie_io_functions_t funcsio =
@@ -111,7 +114,7 @@ static const cookie_io_functions_t funcsio =
 /* Open a stream on PORT.  MODE is as for fopen.  */
 
 FILE *
-fopenport (mach_port_t port, const char *mode)
+__fopenport (mach_port_t port, const char *mode)
 {
   int pflags;
   int needflags;
@@ -150,3 +153,4 @@ fopenport (mach_port_t port, const char *mode)
 
   return fopencookie ((void *) port, mode, funcsio);
 }
+weak_alias (__fopenport, fopenport)