Commit 4a2a6d7a authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Add test for AI_ADDRCONFIG for platforms where it does not exist

parent f4bc7ed6
......@@ -157,6 +157,11 @@ Endif ( NOT GCRYPT_LIBRARY )
SET(GCRYPT_LIBRARY ${GCRYPT_LIBRARY} PARENT_SCOPE)
# Check if AI_ADDRCONFIG is available on the system
CHECK_SYMBOL_EXISTS(AI_ADDRCONFIG "netdb.h" HAVE_AI_ADDRCONFIG)
##########################
# LFDPROTO_LIBS = libraries required by the libfdproto.
......
......@@ -40,6 +40,7 @@
#cmakedefine HAVE_NTOHLL
#cmakedefine HAVE_MALLOC_H
#cmakedefine HAVE_SIGNALENT_H
#cmakedefine HAVE_AI_ADDRCONFIG
#cmakedefine HOST_BIG_ENDIAN @HOST_BIG_ENDIAN@
......
......@@ -46,6 +46,10 @@
#define IPPROTO_SCTP (2 = 4) /* some compilation error to spot the references */
#endif /* DISABLE_SCTP */
#ifndef HAVE_AI_ADDRCONFIG
#define AI_ADDRCONFIG 0 /* ignore this flag at the moment */
#endif /* HAVE_AI_ADDRCONFIG */
/* Timeout for establishing a connection */
#ifndef CNX_TIMEOUT
#define CNX_TIMEOUT 10 /* in seconds */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment