Bugzilla bug 124981: Enable IPv6 support for FreeBSD. This patch is
authorwtc%netscape.com
Sat, 16 Feb 2002 07:12:55 +0000
changeset 2261 718ded67440368df228d203b81a759480c4aabee
parent 2259 4f671133c91a11dc560a33557e591d87d712ba83
child 2263 d41ebbaee196f99f7f899bb96d036aee9df6ae98
push idunknown
push userunknown
push dateunknown
bugs124981
Bugzilla bug 124981: Enable IPv6 support for FreeBSD. This patch is contributed by Munechika Sumikawa <sumikawa@ebina.hitachi.co.jp>.
pr/include/md/_freebsd.h
--- a/pr/include/md/_freebsd.h
+++ b/pr/include/md/_freebsd.h
@@ -83,16 +83,22 @@
 #define _PR_POLL_AVAILABLE
 #define _PR_USE_POLL
 #endif
 #endif
 
 #define _PR_HAVE_SYSV_SEMAPHORES
 #define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
 
+#if __FreeBSD_version >= 400014
+#define _PR_INET6
+#define _PR_HAVE_GETHOSTBYNAME2
+#define _PR_INET6_PROBE
+#endif
+
 #define USE_SETJMP
 
 #ifndef _PR_PTHREADS
 #include <setjmp.h>
 
 #define PR_CONTEXT_TYPE	sigjmp_buf
 
 #define CONTEXT(_th) ((_th)->md.context)