summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/roken.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/heimdal_build/roken.h')
-rw-r--r--source4/heimdal_build/roken.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/heimdal_build/roken.h b/source4/heimdal_build/roken.h
index 172dc76a29..d8c49fb688 100644
--- a/source4/heimdal_build/roken.h
+++ b/source4/heimdal_build/roken.h
@@ -119,6 +119,15 @@
#define STRERROR_R_PROTO_COMPATIBLE
#endif
+#ifndef HAVE_DIRFD
+#ifdef HAVE_DIR_DD_FD
+#define dirfd(x) ((x)->dd_fd)
+#else
+#define dirfd(d) (-1)
+#endif
+#define HAVE_DIRFD 1
+#endif
+
/* we lie about having pidfile() so that NetBSD5 can compile. Nothing
in the parts of heimdal we use actually uses pidfile(), and we