1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r8750: drat, on some systems dirfd() is a macro

(This used to be commit d974bf3589e1b0cd1d5661a21571b81e99350709)
This commit is contained in:
Andrew Tridgell 2005-07-25 04:39:20 +00:00 committed by Gerald (Jerry) Carter
parent ecc691041c
commit dc4af82432

View File

@ -141,8 +141,11 @@ int closedir(DIR *dir)
return 0;
}
#ifndef dirfd
/* darn, this is a macro on some systems. */
int dirfd(DIR *dir)
{
struct dir_buf *d = (struct dir_buf *)dir;
return d->fd;
}
#endif