$NetBSD: patch-af,v 1.2 2023/07/09 22:14:42 nia Exp $
--- source/death.c.orig	1994-07-22 01:47:16.000000000 +0000
+++ source/death.c
@@ -50,23 +50,7 @@
 #endif
 #endif
 
-#ifdef VMS
-unsigned int getuid(), getgid();
-#else
-#ifdef unix
-#ifdef USG
-unsigned short getuid(), getgid();
-#else
-#ifndef SECURE
-#ifdef BSD4_3
-uid_t getuid(), getgid();
-#else  /* other BSD versions */
-int getuid(), getgid();
-#endif
-#endif
-#endif
-#endif
-#endif
+#include <unistd.h>
 
 #ifdef USG
 #ifndef ATARIST_MWC
@@ -126,7 +110,7 @@ static void kingly(void);
 #ifndef VMS
 #ifndef MAC
 #if !defined(ATARIST_MWC) && !defined(AMIGA)
-long time();
+time_t time();
 #endif
 #endif
 #endif
@@ -144,9 +128,9 @@ char *day;
 #ifdef MAC
   clockvar = time((time_t *) 0);
 #else
-  clockvar = time((long *) 0);
+  clockvar = time((time_t *) 0);
 #endif
-  tmp = ctime(&clockvar);
+  tmp = ctime((time_t *)&clockvar);
   tmp[10] = '\0';
   (void) strcpy(day, tmp);
 }
