git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecc6910
)
r8750: drat, on some systems dirfd() is a macro
author
Andrew Tridgell
<tridge@samba.org>
Mon, 25 Jul 2005 04:39:20 +0000
(
04:39
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:30:02 +0000
(13:30 -0500)
(This used to be commit
d974bf3589e1b0cd1d5661a21571b81e99350709
)
source4/lib/replace/repdir/repdir.c
patch
|
blob
|
history
diff --git
a/source4/lib/replace/repdir/repdir.c
b/source4/lib/replace/repdir/repdir.c
index a4317aa11c0c26bb9acdf79b497027e714b6bf8b..b536ed658703fe57cca62dbbb25a73d291dfc2b6 100644
(file)
--- 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