summaryrefslogtreecommitdiff
path: root/source4/lib/replace/repdir
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-25 04:39:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:02 -0500
commitdc4af82432c43920eeafbcdbbe2a6576a6d8d80e (patch)
tree01e46856018ce141b7b28b4e28e79f62963da917 /source4/lib/replace/repdir
parentecc691041c0650973830c4c566b362b19967f80c (diff)
downloadsamba-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/lib/replace/repdir')
-rw-r--r--source4/lib/replace/repdir/repdir.c3
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