mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Show nmap- prefix for included libssh2 and libz
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user