* 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. */
@ -1560,7 +1560,7 @@
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
'sig_atomic_t'. */
#define SIG_ATOMIC_T_SUFFIX
#define SIG_ATOMIC_T_SUFFIX
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
'size_t'. */
@ -1665,7 +1665,7 @@
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
'wchar_t'. */
#define WCHAR_T_SUFFIX
#define WCHAR_T_SUFFIX
/* Define if sys/ptem.h is required for struct winsize. */
/* #undef WINSIZE_IN_PTEM */

View File

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