mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Show nmap- prefix for included libssh2 and libz
This commit is contained in:
parent
01d4a1563d
commit
17bcd4c4fc
2 changed files with 10 additions and 0 deletions
8
nmap.cc
8
nmap.cc
|
|
@ -2843,13 +2843,21 @@ static void display_nmap_version() {
|
|||
#endif
|
||||
|
||||
#if HAVE_LIBSSH2
|
||||
#ifdef LIBSSH2_INCLUDED
|
||||
with.push_back(std::string("nmap-libssh2-") + get_word_or_quote(LIBSSH2_VERSION_TEXT, 1));
|
||||
#else
|
||||
with.push_back(std::string("libssh2-") + get_word_or_quote(LIBSSH2_VERSION_TEXT, 1));
|
||||
#endif
|
||||
#else
|
||||
without.push_back("libssh2");
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBZ_V
|
||||
#ifdef ZLIB_INCLUDED
|
||||
with.push_back(std::string("nmap-libz-") + get_word_or_quote(LIBZ_VERSION_TEXT, 1));
|
||||
#else
|
||||
with.push_back(std::string("libz-") + get_word_or_quote(LIBZ_VERSION_TEXT, 1));
|
||||
#endif
|
||||
#else
|
||||
without.push_back("libz");
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -238,6 +238,8 @@ extern "C" int gethostname (char *, unsigned int);
|
|||
#undef PCAP_INCLUDED
|
||||
#undef DNET_INCLUDED
|
||||
#undef PCRE_INCLUDED
|
||||
#undef LIBSSH2_INCLUDED
|
||||
#undef ZLIB_INCLUDED
|
||||
|
||||
#undef DEC
|
||||
#undef LINUX
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue