diff --git a/src/sbbs3/smbutil.c b/src/sbbs3/smbutil.c
index 259bcd35be30bdfc8fef282b72bdedab624546d4..a1558c63423ab4ef3f3ccea1b54f8f79b7530031 100644
--- a/src/sbbs3/smbutil.c
+++ b/src/sbbs3/smbutil.c
@@ -52,6 +52,7 @@
 
 /* ANSI */
 #include <time.h>	/* time */
+#include <errno.h>	/* errno */
 
 #include "smblib.h"
 #include "smbwrap.h"
@@ -567,10 +568,10 @@ while(l<count) {
 		break; }
 
 	sprintf(when_written,"%.24s %s"
-		,timestr(&msg.hdr.when_written.time)
+		,timestr((time_t*)&msg.hdr.when_written.time)
 		,zonestr(msg.hdr.when_written.zone));
 	sprintf(when_imported,"%.24s %s"
-		,timestr(&msg.hdr.when_imported.time)
+		,timestr((time_t*)&msg.hdr.when_imported.time)
 		,zonestr(msg.hdr.when_imported.zone));
 
 	printf( "%-20.20s %s\n"
@@ -1245,7 +1246,7 @@ while(!done) {
 				? faddrtoa(*(fidoaddr_t *)msg.from_net.addr)
 					: msg.from_net.addr);
 		printf("\nDate : %.24s %s"
-			,timestr(&msg.hdr.when_written.time)
+			,timestr((time_t*)&msg.hdr.when_written.time)
 			,zonestr(msg.hdr.when_written.zone));
 
 		printf("\n\n");