diff --git a/source/adios2/helper/adiosNetwork.cpp b/source/adios2/helper/adiosNetwork.cpp index d4554289a2..bdb2e76c61 100644 --- a/source/adios2/helper/adiosNetwork.cpp +++ b/source/adios2/helper/adiosNetwork.cpp @@ -14,12 +14,12 @@ #include // memcpy +#ifndef _WIN32 + #include //getFQDN #include //getFQDN #include //getFQDN -#ifndef _WIN32 - #if defined(ADIOS2_HAVE_DATAMAN) || defined(ADIOS2_HAVE_TABLE) #include @@ -34,7 +34,11 @@ #include #endif // ADIOS2_HAVE_DATAMAN || ADIOS2_HAVE_TABLE -#endif // _WIN32 + +#else // _WIN32 +#include +#include // GetComputerName +#endif // _WIN32 namespace adios2 { @@ -50,6 +54,7 @@ std::string GetFQDN() noexcept memset(hostname, 0, sizeof(hostname)); if (GetComputerName(infoBuf, &bufCharCount)) { + int i; for (i = 0; i < sizeof(hostname); i++) { hostname[i] = infoBuf[i];