r8750: drat, on some systems dirfd() is a macro
authorAndrew Tridgell <tridge@samba.org>
Mon, 25 Jul 2005 04:39:20 +0000 (04:39 +0000)
committerGerald (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

index a4317aa11c0c26bb9acdf79b497027e714b6bf8b..b536ed658703fe57cca62dbbb25a73d291dfc2b6 100644 (file)
@@ -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