* 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 `}'.
# include <dirstream.h>
# include <dirent/dirent.h>
# include <sys/stat.h>
+# include <stdbool.h>
/* Now define the internal interfaces. */
extern DIR *__opendir (__const char *__name);
#include <errno.h>
#include <hurd.h>
#include <hurd/fd.h>
+#include <fcntl.h>
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)
{
if (dirp == NULL)
__close (fd);
- }
-
return dirp;
}
weak_alias (__opendir, opendir)