--- X11/XawM/List.c.orig	2000-10-13 01:55:13.000000000 +1100
+++ X11/XawM/List.c	2022-06-07 03:57:05.000000000 +1000
@@ -42,6 +42,7 @@ in this Software without prior written a
 
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
 
 #include <X11/IntrinsicP.h>
 #include <X11/StringDefs.h>
--- X11/XawM/MultiSink.c.orig	2001-05-17 08:06:04.000000000 +1000
+++ X11/XawM/MultiSink.c	2022-06-07 03:58:28.000000000 +1000
@@ -86,6 +86,7 @@ SOFTWARE.
 #include "XawI18n.h"
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
 
 #ifdef GETLASTPOS
 #undef GETLASTPOS		/* We will use our own GETLASTPOS. */
--- X11/XawM/Text.c.orig	2001-05-17 08:14:00.000000000 +1000
+++ X11/XawM/Text.c	2022-06-07 04:08:28.000000000 +1000
@@ -59,6 +59,7 @@ SOFTWARE.
 #include <X11/Xutil.h>
 #include "XawI18n.h"
 #include <stdio.h>
+#include <stdlib.h>
 
 #include <X11/Xmu/Atoms.h>
 #include <X11/Xmu/CharSet.h>
