--- configure.old	2024-11-03 20:37:34
+++ configure	2024-11-03 21:04:28
@@ -11445,10 +11445,14 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+#include <sys/types.h>
+#include <sys/socket.h>
+
 int
 main ()
 {
-socket();
+int a,b,c;
+socket(a,b,c);
   ;
   return 0;
 }
@@ -11494,6 +11498,9 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+#include <sys/types.h>
+#include <sys/socket.h>
+
 int
 main ()
 {
@@ -11570,6 +11577,8 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+
+#include <netdb.h>
 
 int
 main ()
@@ -11619,6 +11628,8 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+
+#include <netdb.h>
 
 int
 main ()
@@ -12006,10 +12017,13 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+#include <netdb.h>
+
 int
 main ()
 {
-gethostbyname();
+const char * a;
+gethostbyname(a);
   ;
   return 0;
 }
@@ -12054,6 +12068,8 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+
+#include <netdb.h>
 
 int
 main ()
