Index: Makefile.in
--- Makefile.in.orig	2009-04-03 13:56:43 +0200
+++ Makefile.in	2009-05-18 22:45:29 +0200
@@ -316,13 +316,13 @@
 	$(EDIT) $(srcdir)/nsd.conf.sample.in > nsd.conf.sample
 
 install: all
-	$(INSTALL) -d $(DESTDIR)$(sbindir)
-	$(INSTALL) -d $(DESTDIR)$(configdir)
-	$(INSTALL) -d $(DESTDIR)$(piddir)
-	$(INSTALL) -d $(DESTDIR)$(dbdir)
-	$(INSTALL) -d $(DESTDIR)$(mandir)
-	$(INSTALL) -d $(DESTDIR)$(mandir)/man8
-	$(INSTALL) -d $(DESTDIR)$(mandir)/man5
+	-$(INSTALL) -d $(DESTDIR)$(sbindir)
+	-$(INSTALL) -d $(DESTDIR)$(configdir)
+	-$(INSTALL) -d $(DESTDIR)$(piddir)
+	-$(INSTALL) -d $(DESTDIR)$(dbdir)
+	-$(INSTALL) -d $(DESTDIR)$(mandir)
+	-$(INSTALL) -d $(DESTDIR)$(mandir)/man8
+	-$(INSTALL) -d $(DESTDIR)$(mandir)/man5
 	$(INSTALL) nsd $(DESTDIR)$(sbindir)/nsd
 	$(INSTALL) zonec $(DESTDIR)$(sbindir)/zonec
 	$(INSTALL) nsdc.sh $(DESTDIR)$(sbindir)/nsdc
Index: tsig.c
--- tsig.c.orig	2009-01-13 13:45:11 +0100
+++ tsig.c	2009-05-18 20:09:22 +0200
@@ -310,11 +310,19 @@
 		time_t clock;
 
 		clock = (time_t) current_time;
+#ifdef __sun__
+		ctime_r(&clock, current_time_text, sizeof(current_time_text));
+#else
 		ctime_r(&clock, current_time_text);
+#endif
 		current_time_text[24] = '\0';
 
 		clock = (time_t) signed_time;
+#ifdef __sun__
+		ctime_r(&clock, signed_time_text, sizeof(signed_time_text));
+#else
 		ctime_r(&clock, signed_time_text);
+#endif
 		signed_time_text[24] = '\0';
 
 		log_msg(LOG_ERR,
