From dc4af82432c43920eeafbcdbbe2a6576a6d8d80e Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <tridge@samba.org>
Date: Mon, 25 Jul 2005 04:39:20 +0000
Subject: r8750: drat, on some systems dirfd() is a macro (This used to be
 commit d974bf3589e1b0cd1d5661a21571b81e99350709)

---
 source4/lib/replace/repdir/repdir.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'source4/lib/replace')

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
-- 
cgit