about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/dirfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/dirfd.c')
-rw-r--r--sysdeps/mach/hurd/dirfd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/dirfd.c b/sysdeps/mach/hurd/dirfd.c
index 366a34079b..9e713fc4ca 100644
--- a/sysdeps/mach/hurd/dirfd.c
+++ b/sysdeps/mach/hurd/dirfd.c
@@ -19,6 +19,8 @@ Cambridge, MA 02139, USA.  */
 
 #include <dirent.h>
 #include <dirstream.h>
+#include <hurd/fd.h>
+#include <errno.h>
 
 int
 dirfd (DIR *dirp)
@@ -30,7 +32,7 @@ dirfd (DIR *dirp)
       break;
   if (fd == _hurd_dtablesize)
     {
-      errno = EINVAL
+      errno = EINVAL;
       fd = -1;
     }
   __mutex_unlock (&_hurd_dtable_lock);