Merge pull request #1096 from signalwire/apr-osx-configure-ipv6

[build] fix configure checks for ipv6 on latest osx
This commit is contained in:
Andrey Volk 2021-03-04 20:22:12 +03:00 committed by GitHub
commit e5277a874b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View 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];

View 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;

View 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;