diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-07 23:31:48 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:45 +1000 |
commit | 58049e7f16c59646576a695cdbd5a6e03bf8f106 (patch) | |
tree | 767924809db9ff76c57e3245edae60c1065bebe6 | |
parent | 690b08fa0ad27d1fc7b9564c8c216c2ff00f944e (diff) | |
download | samba-58049e7f16c59646576a695cdbd5a6e03bf8f106.tar.gz samba-58049e7f16c59646576a695cdbd5a6e03bf8f106.tar.bz2 samba-58049e7f16c59646576a695cdbd5a6e03bf8f106.zip |
build: added IPV6 test
-rw-r--r-- | lib/replace/wscript | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 9e10cd9904..05bf1ea06b 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -112,6 +112,20 @@ def configure(conf): conf.CHECK_TYPE_IN('sig_atomic_t', 'signal.h', define='HAVE_SIG_ATOMIC_T_TYPE') + conf.CHECK_CODE(''' + struct sockaddr_storage sa_store; + struct addrinfo *ai = NULL; + struct in6_addr in6addr; + int idx = if_nametoindex("iface1"); + int s = socket(AF_INET6, SOCK_STREAM, 0); + int ret = getaddrinfo(NULL, NULL, NULL, &ai); + if (ret != 0) { + const char *es = gai_strerror(ret); + } + freeaddrinfo(ai); + ''', + define='HAVE_IPV6') + conf.CHECK_FUNCS('shl_load shl_unload shl_findsym') conf.CHECK_FUNCS('pipe strftime srandom random srand rand usleep setbuffer') |