summaryrefslogtreecommitdiff
path: root/sysdeps/posix/dirfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/dirfd.c')
-rw-r--r--sysdeps/posix/dirfd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/posix/dirfd.c b/sysdeps/posix/dirfd.c
index f47aafd83a..5afc9f37e7 100644
--- a/sysdeps/posix/dirfd.c
+++ b/sysdeps/posix/dirfd.c
@@ -1,5 +1,5 @@
/* Return the file descriptor used by a DIR stream. Unix version.
- Copyright (C) 1995-2016 Free Software Foundation, Inc.
+ Copyright (C) 1995-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,7 +22,10 @@
#undef dirfd
int
-dirfd (DIR *dirp)
+__dirfd (DIR *dirp)
{
return dirp->fd;
}
+
+weak_alias (__dirfd, dirfd)
+libc_hidden_def (dirfd)