--- dist/configure.orig	2010-04-12 15:25:23.000000000 -0500
+++ dist/configure	2024-03-19 16:19:34.000000000 -0500
@@ -18756,6 +18756,7 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
 int
 main ()
 {
@@ -18792,6 +18793,8 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
+int
 main() {
 	pthread_cond_t cond;
 	pthread_mutex_t mutex;
@@ -18828,6 +18831,7 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
 int
 main ()
 {
@@ -18864,6 +18868,8 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
+int
 main() {
 	pthread_cond_t cond;
 	pthread_mutex_t mutex;
@@ -18899,6 +18905,7 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
 int
 main ()
 {
@@ -18933,6 +18940,8 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
+int
 main() {
 	pthread_cond_t cond;
 	pthread_mutex_t mutex;
@@ -18967,6 +18976,7 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
 int
 main ()
 {
@@ -19001,6 +19011,8 @@
 /* end confdefs.h.  */
 
 #include <pthread.h>
+#include <stdlib.h>
+int
 main() {
 	pthread_cond_t cond;
 	pthread_mutex_t mutex;
@@ -19037,6 +19049,7 @@
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+	#include <stdlib.h>
 	#include <synch.h>
 int
 main ()
@@ -19068,6 +19081,7 @@
 /* end confdefs.h.  */
 
 	#include <thread.h>
+	#include <stdlib.h>
 	#include <synch.h>
 int
 main ()
@@ -19098,6 +19112,7 @@
 /* end confdefs.h.  */
 
 	#include <thread.h>
+	#include <stdlib.h>
 	#include <synch.h>
 int
 main ()
@@ -19136,6 +19151,7 @@
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19159,6 +19175,7 @@
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19210,6 +19227,7 @@
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19276,6 +19294,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 #include <sys/mman.h>
 int
 main ()
@@ -19308,6 +19327,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 int
@@ -19366,6 +19386,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19497,6 +19518,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19522,6 +19544,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19547,6 +19570,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19572,6 +19596,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19597,6 +19622,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19622,6 +19648,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19647,6 +19674,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19672,6 +19700,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19697,6 +19726,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19722,6 +19752,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -19747,6 +19778,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -20198,6 +20230,7 @@
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 int
 main ()
 {
@@ -20224,6 +20257,7 @@
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdlib.h>
 #include <sys/atomic.h>
 int
 main ()
@@ -20743,6 +20777,7 @@
 /* end confdefs.h.  */
 
 #include <sys/time.h>
+int
 main() {
 	struct timespec t;
 	return (clock_gettime(CLOCK_MONOTONIC, &t) != 0);
@@ -21600,6 +21635,8 @@
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <stdio.h>
+#include <string.h>
 int
 main ()
 {
@@ -21634,6 +21671,9 @@
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+		#include <stdio.h>
+		#include <string.h>
+		int
 		main() {
 			$db_cv_seq_type l;
 			unsigned $db_cv_seq_type u;
