$NetBSD: patch-aa,v 1.2 2026/03/23 11:32:02 nia Exp $

--- xaniroc.c.orig	1994-01-07 10:51:13.000000000 +0000
+++ xaniroc.c
@@ -19,9 +19,10 @@
  */
 
 #include <stdio.h>				/* get standard I/O functions */
+#include <stdlib.h>				/* get standard lib functions */
 #include <X11/Xlib.h>				/* get the X library definitions */
 #include <X11/Xutil.h>				/* get the X11 utility definitions */
-#include <sys/signal.h>                         /* get signal definitions */
+#include <signal.h>                             /* get signal definitions */
 #include <sys/time.h>                           /* get time definitions */
 #include <string.h>                             /* get string functions */
 #include "bitmaps.h"                            /* get the bitmaps for the cursor */
@@ -62,22 +63,19 @@ GC		gc_xor,				/* GC's */
  ***************************************************************************************************
  */
 
-void main(int argc, char *argv[]);
+int main(int argc, char *argv[]);
 void usage(void);
 void frame_wait(void);
 int  pointer_in_rootwindow(void);
-#ifdef  SVR4
 SIGVAL cleanup_and_exit(int sig);
-#else
-SIGVAL cleanup_and_exit(int sig, int code, struct sigcontext *scp, char *addr);
-#endif	/* SVR4 */
 
 /***************************************************************************************************
  *	the main function of XAniroc
  ***************************************************************************************************
  */
 
-void main(int argc, char *argv[])
+int
+main(int argc, char *argv[])
 {
 
 /***************************************************************************************************
@@ -311,6 +309,7 @@ void main(int argc, char *argv[])
 			if(i >= 24) i = 0;
 		}
 	}
+	return 0;
 } /*end of main */
 
 /***************************************************************************************************
@@ -387,11 +386,7 @@ int pointer_in_rootwindow(void)
  *				        signal handler that cleans up the cursor
  ***************************************************************************************************
  */
-#ifdef  SVR4
 SIGVAL cleanup_and_exit(int sig)
-#else
-SIGVAL cleanup_and_exit(int sig, int code,struct sigcontext *scp, char *addr)
-#endif	/* SVR4 */
 {
         XUndefineCursor(display, XDefaultRootWindow(display));
         XCloseDisplay(display);
