about summary refs log tree commit diff
path: root/dirent/dirfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'dirent/dirfd.c')
-rw-r--r--dirent/dirfd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dirent/dirfd.c b/dirent/dirfd.c
index 026421f33b..569484c5af 100644
--- a/dirent/dirfd.c
+++ b/dirent/dirfd.c
@@ -1,5 +1,5 @@
 /* Return the file descriptor used by a DIR stream.  Stub version.
-   Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 2012 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
@@ -21,12 +21,13 @@
 #include <errno.h>
 
 int
-dirfd (dirp)
+__dirfd (dirp)
      DIR *dirp;
 {
   __set_errno (ENOSYS);
   return -1;
 }
+weak_alias(__dirfd, dirfd)
 
 stub_warning (dirfd)
 #include <stub-tag.h>