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:
parent
ecc691041c
commit
dc4af82432
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user