2005-10-15 Thomas Schwinge <tschwinge@gnu.org>

* include/dirent.h: Include <stdbool.h>.
	* sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
	(fdopendir): Correct argument to _hurd_fd_get().
	* sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
This commit is contained in:
Roland McGrath 2005-10-16 08:34:04 +00:00
parent 9b0c3f38d3
commit 4b2faf49ce
3 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,7 @@
# include <dirstream.h> # include <dirstream.h>
# include <dirent/dirent.h> # include <dirent/dirent.h>
# include <sys/stat.h> # include <sys/stat.h>
# include <stdbool.h>
/* Now define the internal interfaces. */ /* Now define the internal interfaces. */
extern DIR *__opendir (__const char *__name); extern DIR *__opendir (__const char *__name);

View File

@ -21,6 +21,7 @@
#include <errno.h> #include <errno.h>
#include <hurd.h> #include <hurd.h>
#include <hurd/fd.h> #include <hurd/fd.h>
#include <fcntl.h>
DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */ 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 * DIR *
fdopendir (int fd) fdopendir (int fd)
{ {
struct hurd_fd *d = _hurd_fd_get (d); struct hurd_fd *d = _hurd_fd_get (fd);
if (d == NULL) if (d == NULL)
{ {

View File

@ -110,8 +110,6 @@ __opendir (const char *name)
if (dirp == NULL) if (dirp == NULL)
__close (fd); __close (fd);
}
return dirp; return dirp;
} }
weak_alias (__opendir, opendir) weak_alias (__opendir, opendir)