From: Roland McGrath Date: Sun, 16 Oct 2005 08:34:04 +0000 (+0000) Subject: 2005-10-15 Thomas Schwinge X-Git-Tag: cvs/fedora-glibc-2_3-20051017T0259~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b2faf49ce99f8bb1efd34e15022bda59ebbf67d;p=platform%2Fupstream%2Fglibc.git 2005-10-15 Thomas Schwinge * include/dirent.h: Include . * sysdeps/mach/hurd/fdopendir.c: Include . (fdopendir): Correct argument to _hurd_fd_get(). * sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'. --- diff --git a/include/dirent.h b/include/dirent.h index 81ad24d..4e95ffd 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -2,6 +2,7 @@ # include # include # include +# include /* Now define the internal interfaces. */ extern DIR *__opendir (__const char *__name); diff --git a/sysdeps/mach/hurd/fdopendir.c b/sysdeps/mach/hurd/fdopendir.c index d08e478..37dd4bc 100644 --- a/sysdeps/mach/hurd/fdopendir.c +++ b/sysdeps/mach/hurd/fdopendir.c @@ -21,6 +21,7 @@ #include #include #include +#include DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */ @@ -28,7 +29,7 @@ DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */ DIR * fdopendir (int fd) { - struct hurd_fd *d = _hurd_fd_get (d); + struct hurd_fd *d = _hurd_fd_get (fd); if (d == NULL) { diff --git a/sysdeps/mach/hurd/opendir.c b/sysdeps/mach/hurd/opendir.c index 949db0f..5b10142 100644 --- a/sysdeps/mach/hurd/opendir.c +++ b/sysdeps/mach/hurd/opendir.c @@ -110,8 +110,6 @@ __opendir (const char *name) if (dirp == NULL) __close (fd); - } - return dirp; } weak_alias (__opendir, opendir)