$NetBSD: patch-ag,v 1.2 2023/07/09 22:14:42 nia Exp $
--- source/main.c.orig	1994-07-22 01:47:27.000000000 +0000
+++ source/main.c
@@ -92,7 +92,7 @@
 #ifndef MAC
 #ifndef GEMDOS
 #ifndef AMIGA
-long time();
+time_t time();
 #endif
 #endif
 char *getenv();
@@ -103,14 +103,12 @@ char *getenv();
 #ifndef AMIGA
 #ifdef USG
 #if !defined(MSDOS) && !defined(ATARIST_TC)
-unsigned short getuid(), getgid();
+#include <unistd.h>
 #endif
 #else
 #ifndef SECURE
 #ifdef BSD4_3
-uid_t getuid(), getgid();
-#else  /* other BSD versions */
-int getuid(), getgid();
+#include <unistd.h>
 #endif
 #endif
 #endif
@@ -363,7 +361,7 @@ char *argv[];
 #ifdef MAC
       birth_date = time ((time_t *)0);
 #else
-      birth_date = time ((long *)0);
+      birth_date = time ((time_t *)0);
 #endif
       char_inven_init();
       py.flags.food = 7500;
