]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[build] fix configure checks for ipv6 on latest osx 1096/head
authorMike Jerris <mike@signalwire.com>
Wed, 3 Mar 2021 17:02:29 +0000 (10:02 -0700)
committerMike Jerris <mike@signalwire.com>
Wed, 3 Mar 2021 17:02:29 +0000 (10:02 -0700)
libs/apr/build/apr_common.m4
libs/apr/build/apr_network.m4
libs/apr/configure.ac

index 1f79f7acd09995461a40eff2105447174e985ff4..e8e9f51f08be74a2a9c9e73401982350d2f9c3ad 100644 (file)
@@ -519,6 +519,9 @@ AC_TRY_RUN([
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 int main(void)
 {
   char buf[1024];
index d8b1bcad27c9001d1e217b2b50c844a14854dfc9..df582960acec9114ac3f8c0449884f0b10567d59 100644 (file)
@@ -40,6 +40,9 @@ AC_DEFUN([APR_CHECK_WORKING_GETADDRINFO],[
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 int main(void) {
     struct addrinfo hints, *ai;
@@ -134,6 +137,12 @@ AC_DEFUN([APR_CHECK_WORKING_GETNAMEINFO],[
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 int main(void) {
     struct sockaddr_in sa;
@@ -177,6 +186,9 @@ AC_DEFUN([APR_CHECK_NEGATIVE_EAI],[
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 int main(void) {
     if (EAI_ADDRFAMILY < 0) {
@@ -282,6 +294,9 @@ AC_DEFUN([APR_CHECK_TCP_NODELAY_INHERITED],[
 #ifndef HAVE_SOCKLEN_T
 typedef int socklen_t;
 #endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 int main(void) {
     int listen_s, connected_s, client_s;
     int listen_port, rc;
@@ -453,6 +468,9 @@ typedef int socklen_t;
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 int main(void) {
     int listen_s, connected_s, client_s;
     int listen_port, rc;
index fa5796eccac7dd1bb9224b7e301be2ccf3997b8b..2b8f551880c81cf7160fc50c589f0ce2fe6b1c6f 100644 (file)
@@ -1552,6 +1552,7 @@ AC_TRY_RUN([
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>
+#include <stdlib.h>
 main()
 {
     struct rlimit limit;
@@ -1580,6 +1581,7 @@ AC_TRY_RUN([
 #include <stdlib.h>
 #include <fcntl.h>
 #include <semaphore.h>
+#include <stdlib.h>                                                                                                                                            
 main()
 {
     sem_t *psem;
@@ -1634,6 +1636,7 @@ if test "$threads" = "1"; then
       AC_TRY_RUN([
 #include <sys/types.h>
 #include <pthread.h>
+#include <stdlib.h>
         int main()
         {
             pthread_mutex_t mutex;