aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/dirfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/dirfd.c')
-rw-r--r--sysdeps/unix/dirfd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/dirfd.c b/sysdeps/unix/dirfd.c
index 6b6f980a41..7733634a47 100644
--- a/sysdeps/unix/dirfd.c
+++ b/sysdeps/unix/dirfd.c
@@ -20,9 +20,11 @@ Cambridge, MA 02139, USA. */
#include <dirent.h>
#include <dirstream.h>
+#undef dirfd
+
int
dirfd (dirp)
- FILE *dirp;
+ DIR *dirp;
{
return dirp->__fd;
}