From 9ecdbb774c28065cf1edd6aa8db5c7b77dda9795 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 19 Feb 2026 21:17:09 +0100 Subject: [PATCH] fix localtime prototype Ultrix 4.2 contains a correct prototype for localtime so this should not be an issue anymore. --- supp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/supp.c b/supp.c index ef9a62a..19250a5 100644 --- a/supp.c +++ b/supp.c @@ -21,12 +21,10 @@ extern int rand P((void)); /* We should have a definition for time_t and struct tm by now. Make * sure we have definitions for the functions we want to call. - * The argument to localtime should be P((const time_t *)), but Ultrix - * 4.0 leaves out the const in their prototype. Damn them. */ extern time_t time P((time_t *)); -extern struct tm *localtime (); +extern struct tm *localtime P((const time_t *)); /* Terminate the game */