Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only test for ipv6 support by compilation, not need to run a test which will result in a pkg without ipv6 support for the building jail is setup only with ipv4
Baptiste Daroussin committed 10 years ago
commit b386a12b6f22e427401f83963a11f6e790b2b18a
parent 89dc0cf
1 file changed +3 -12
modified configure.ac
@@ -204,20 +204,11 @@ AC_CHECK_MEMBERS([struct in6_addr.s6_addr32,

AC_MSG_CHECKING(for IPv6 support)
AC_CACHE_VAL(ac_cv_ipv6,
-
      AC_TRY_RUN([
+
	AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
-
#include <netinet/in.h>
-
	/* Make sure the definitions for AF_INET6 and struct sockaddr_in6
-
	 * are defined, and that we can actually create an IPv6 TCP socket.
-
	 */
-
	main()
-
	{
-
		int fd;
-
		struct sockaddr_in6 foo;
-
		fd = socket(AF_INET6, SOCK_STREAM, 0);
-
		exit(fd >= 0 ? 0 : 1);
-
	}],
+
#include <netinet/in.h>],
+
	[ int domain = AF_INET6; ],
	ac_cv_ipv6=yes,
	ac_cv_ipv6=no,
	ac_cv_ipv6=no))