about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/open.c')
-rw-r--r--sysdeps/mach/hurd/open.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/open.c b/sysdeps/mach/hurd/open.c
index 01efe73cbf..3ca9a72c84 100644
--- a/sysdeps/mach/hurd/open.c
+++ b/sysdeps/mach/hurd/open.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992,93,94,95,97,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1992,93,94,95,97,2000,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,9 @@
 #include <hurd.h>
 #include <hurd/fd.h>
 
+#undef __libc_open
+#undef __open
+
 /* Open FILE with access OFLAG.  If OFLAG includes O_CREAT,
    a third argument is the file protection.  */
 int
@@ -47,5 +50,6 @@ __libc_open (const char *file, int oflag, ...)
   return _hurd_intern_fd (port, oflag, 1);
 }
 
+INTDEF2(__libc_open, __open)
 weak_alias (__libc_open, __open)
 weak_alias (__libc_open, open)