summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/fdopendir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/fdopendir.c')
-rw-r--r--sysdeps/mach/hurd/fdopendir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/fdopendir.c b/sysdeps/mach/hurd/fdopendir.c
index d08e478c61..37dd4bc82e 100644
--- a/sysdeps/mach/hurd/fdopendir.c
+++ b/sysdeps/mach/hurd/fdopendir.c
@@ -21,6 +21,7 @@
#include <errno.h>
#include <hurd.h>
#include <hurd/fd.h>
+#include <fcntl.h>
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)
{