about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/www_tcp.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2000-08-03 18:00:32 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2000-08-03 18:00:32 -0400
commit0726d2fa354eae3a7913d3ea28f19115ca904e02 (patch)
tree804a08df540b512940cf9681b299ac1c0f5a1e4b /WWW/Library/Implementation/www_tcp.h
parent56683faadde77d4d27712644e54769a77ac705bb (diff)
downloadlynx-snapshots-0726d2fa354eae3a7913d3ea28f19115ca904e02.tar.gz
snapshot of project "lynx", label v2-8-4dev_7
Diffstat (limited to 'WWW/Library/Implementation/www_tcp.h')
-rw-r--r--WWW/Library/Implementation/www_tcp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h
index adab9ab0..16bca6e2 100644
--- a/WWW/Library/Implementation/www_tcp.h
+++ b/WWW/Library/Implementation/www_tcp.h
@@ -56,8 +56,17 @@ Default values
 #define INVSOC (-1)             /* Unix invalid socket */
 		/* NB: newer libwww has something different for Windows */
 
+/* IPv6 support */
+#if defined(HAVE_GETADDRINFO) && defined(HAVE_GAI_STRERROR) && defined(ENABLE_IPV6)
+#	define INET6
+#endif /* HAVE_GETADDRINFO && HAVE_GAI_STRERROR && ENABLE_IPV6 */
+
 #if !defined(__MINGW32__)
+#ifdef INET6
+typedef struct sockaddr_storage SockA;  /* See netinet/in.h */
+#else
 typedef struct sockaddr_in SockA;  /* See netinet/in.h */
+#endif /* INET6 */
 #endif
 
 #ifndef VMS