$NetBSD: patch-xlogout_c,v 1.2 2025/09/19 06:11:31 mrg Exp $

Updates for modern C / compilers.


--- xlogout.c.orig	1989-11-29 15:29:37.000000000 -0800
+++ xlogout.c	2025-09-18 23:09:49.064475473 -0700
@@ -27,6 +27,7 @@
 /* An example of popup dialog boxes using X11R4 and the Athena widget set */
 
 #include <stdio.h>			/* For the Syntax message */
+#include <stdlib.h>
 #include <X11/Intrinsic.h>
 #include <X11/StringDefs.h>
 #include <X11/Xaw/Cardinals.h>
@@ -48,7 +49,7 @@
 };
 
 
-void main (argc, argv)
+int main (argc, argv)
     int argc;
     char **argv;
 {
