From 076f3b9b8c63bcd86a72b4c37b5bddecc710c7e2 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Fri, 14 Aug 2009 11:02:08 +0200 Subject: [PATCH] Provide glue function for dirfd() for Solaris --- lib/roken/roken.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index dc383a305..fce5c598a 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -474,6 +474,10 @@ unsigned short ROKEN_LIB_FUNCTION bswap16(unsigned short); int rk_flock(int fd, int operation); #endif /* HAVE_FLOCK */ +#ifdef SunOS +#define dirfd(x) ((x)->dd_fd) +#endif + time_t ROKEN_LIB_FUNCTION tm2time (struct tm, int); int ROKEN_LIB_FUNCTION unix_verify_user(char *, char *);