* Build fix: coreutils had a replacement for dirfd().

* Made DIR argument const in dirfd().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26469 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-07-17 01:22:13 +00:00
parent 13ea2be597
commit eaf71fbdb6
3 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ void seekdir(DIR *dir, long int loc);
long int telldir(DIR *);
/* Non-POSIX extension to get the FD out of the private DIR */
int dirfd(DIR *dir);
int dirfd(const DIR *dir);
#ifdef __cplusplus
}

View File

@ -262,7 +262,7 @@
/* Define to 1 if you have the declaration of `dirfd', and to 0 if you don't.
*/
#define HAVE_DECL_DIRFD 0
#define HAVE_DECL_DIRFD 1
/* Define to 1 if you have the declaration of `euidaccess', and to 0 if you
don't. */

View File

@ -121,7 +121,7 @@ rewinddir(DIR *dir)
int
dirfd(DIR *dir)
dirfd(const DIR *dir)
{
return dir->fd;
}