mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Enable IPv6 in Windows libdnet build
This commit is contained in:
@@ -40,6 +40,7 @@ if (MSVC)
|
|||||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||||
check_include_file(winsock2.h HAVE_WINSOCK2_H)
|
check_include_file(winsock2.h HAVE_WINSOCK2_H)
|
||||||
if(HAVE_WINSOCK2_H)
|
if(HAVE_WINSOCK2_H)
|
||||||
|
set(HAVE_SOCKADDR_IN6 TRUE)
|
||||||
set(HAVE_LIBWS2_32 TRUE)
|
set(HAVE_LIBWS2_32 TRUE)
|
||||||
set(DNET_LINK_LIBS ws2_32 ${DNET_LINK_LIBS})
|
set(DNET_LINK_LIBS ws2_32 ${DNET_LINK_LIBS})
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
/* #undef HAVE_ROUTE_RT_MSGHDR */
|
/* #undef HAVE_ROUTE_RT_MSGHDR */
|
||||||
|
|
||||||
/* Define if <netinet/in.h> has sockaddr_in6 struct. */
|
/* Define if <netinet/in.h> has sockaddr_in6 struct. */
|
||||||
/* #undef HAVE_SOCKADDR_IN6 */
|
#define HAVE_SOCKADDR_IN6
|
||||||
|
|
||||||
/* Define if sockaddr struct has sa_len. */
|
/* Define if sockaddr struct has sa_len. */
|
||||||
/* #undef HAVE_SOCKADDR_SA_LEN */
|
/* #undef HAVE_SOCKADDR_SA_LEN */
|
||||||
@@ -274,6 +274,7 @@
|
|||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#ifdef HAVE_WINSOCK2_H
|
||||||
# include <winsock2.h>
|
# include <winsock2.h>
|
||||||
|
# include <ws2tcpip.h>
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user