diff options
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r-- | sysdeps/mach/hurd/fcntl.c | 1 | ||||
-rw-r--r-- | sysdeps/mach/hurd/open.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/fcntl.c b/sysdeps/mach/hurd/fcntl.c index 9c03b3cbc2..15aa3ae6af 100644 --- a/sysdeps/mach/hurd/fcntl.c +++ b/sysdeps/mach/hurd/fcntl.c @@ -23,6 +23,7 @@ #include <stdarg.h> #include <sys/file.h> /* XXX for LOCK_* */ +#undef __libc_fcntl #undef __fcntl 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) |