From 7c18fc4cfe9587ca2feccf2b6b0069546a43bad5 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Fri, 14 Aug 2009 10:12:44 +0200 Subject: [PATCH] Solaris doesn't have dirfd(), lets pull it out from DIR * --- lib/hx509/ks_dir.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/hx509/ks_dir.c b/lib/hx509/ks_dir.c index a627fc65a..cffa00728 100644 --- a/lib/hx509/ks_dir.c +++ b/lib/hx509/ks_dir.c @@ -93,7 +93,9 @@ dir_free(hx509_certs certs, void *data) return 0; } - +#ifdef SunOS +#define dirfd(x) ((x)->dd_fd) +#endif static int dir_iter_start(hx509_context context,