1--- misc/build/apr-1.5.2/configure	2015-04-25 08:04:18.000000000 -0400
2+++ misc/build/apr-1.5.2/configure	2021-07-02 15:40:06.000000000 -0400
3@@ -22256,6 +22256,7 @@
4 #include <errno.h>
5 #include <string.h>
6 #include <stdio.h>
7+#include <stdlib.h>
8 main()
9 {
10   char buf[1024];
11@@ -23550,6 +23551,7 @@
12 /* end confdefs.h.  */
13 #include <stdio.h>
14 #include <sys/types.h>
15+#include <stdlib.h>
16 #ifdef WIN32
17 #define binmode "b"
18 #else
19@@ -23785,6 +23787,7 @@
20 /* end confdefs.h.  */
21 #include <stdio.h>
22 #include <sys/types.h>
23+#include <stdlib.h>
24 #ifdef WIN32
25 #define binmode "b"
26 #else
27@@ -23848,6 +23851,7 @@
28 /* end confdefs.h.  */
29 #include <stdio.h>
30 #include <stddef.h>
31+#include <stdlib.h>
32 #ifdef WIN32
33 #define binmode "b"
34 #else
35@@ -23911,6 +23915,7 @@
36 /* end confdefs.h.  */
37 #include <stdio.h>
38 #include <sys/types.h>
39+#include <stdlib.h>
40 #ifdef WIN32
41 #define binmode "b"
42 #else
43@@ -24061,6 +24066,7 @@
44   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45 /* end confdefs.h.  */
46 #include <stdio.h>
47+#include <stdlib.h>
48 $ac_includes_default
49 #ifdef WIN32
50 #define binmode "b"
51@@ -24349,6 +24355,7 @@
52 #include <stdio.h>
53 #include <sys/types.h>
54 #include <sys/uio.h>
55+#include <stdlib.h>
56 #ifdef WIN32
57 #define binmode "b"
58 #else
59@@ -24973,6 +24980,7 @@
60 #include <sys/types.h>
61 #include <sys/time.h>
62 #include <sys/resource.h>
63+#include <stdlib.h>
64 main()
65 {
66     struct rlimit limit;
67@@ -25417,6 +25425,7 @@
68
69 #include <sys/types.h>
70 #include <pthread.h>
71+#include <stdlib.h>
72         int main()
73         {
74             pthread_mutex_t mutex;
75@@ -27143,6 +27152,7 @@
76 /* end confdefs.h.  */
77
78 #include <stdio.h>
79+#include <stdlib.h>
80 #ifdef HAVE_SYS_TYPES_H
81 #include <sys/types.h>
82 #endif
83@@ -27992,6 +28002,7 @@
84 #ifdef HAVE_SYS_SOCKET_H
85 #include <sys/socket.h>
86 #endif
87+#include <stdlib.h>
88
89 int main(void) {
90     struct addrinfo hints, *ai;
91@@ -28055,6 +28066,7 @@
92 #ifdef HAVE_NETDB_H
93 #include <netdb.h>
94 #endif
95+#include <stdlib.h>
96
97 int main(void) {
98     if (EAI_ADDRFAMILY < 0) {
99@@ -28116,6 +28128,7 @@
100 #ifdef HAVE_NETINET_IN_H
101 #include <netinet/in.h>
102 #endif
103+#include <stdlib.h>
104
105 int main(void) {
106     struct sockaddr_in sa;
107