diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-25 04:39:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:02 -0500 |
commit | dc4af82432c43920eeafbcdbbe2a6576a6d8d80e (patch) | |
tree | 01e46856018ce141b7b28b4e28e79f62963da917 /source4 | |
parent | ecc691041c0650973830c4c566b362b19967f80c (diff) | |
download | samba-dc4af82432c43920eeafbcdbbe2a6576a6d8d80e.tar.gz samba-dc4af82432c43920eeafbcdbbe2a6576a6d8d80e.tar.bz2 samba-dc4af82432c43920eeafbcdbbe2a6576a6d8d80e.zip |
r8750: drat, on some systems dirfd() is a macro
(This used to be commit d974bf3589e1b0cd1d5661a21571b81e99350709)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/replace/repdir/repdir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/replace/repdir/repdir.c b/source4/lib/replace/repdir/repdir.c index a4317aa11c..b536ed6587 100644 --- a/source4/lib/replace/repdir/repdir.c +++ b/source4/lib/replace/repdir/repdir.c @@ -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 |