diff --git a/libminifi/include/utils/file/FileUtils.h b/libminifi/include/utils/file/FileUtils.h index dfba2085b5..4f33ae9d5a 100644 --- a/libminifi/include/utils/file/FileUtils.h +++ b/libminifi/include/utils/file/FileUtils.h @@ -44,6 +44,7 @@ #include // _utime64 #include // _tcscpy,_tcscat,_tcscmp #include // winapi +#include #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN diff --git a/libminifi/src/io/DescriptorStream.cpp b/libminifi/src/io/DescriptorStream.cpp index be00e26cb6..f173911d98 100644 --- a/libminifi/src/io/DescriptorStream.cpp +++ b/libminifi/src/io/DescriptorStream.cpp @@ -27,6 +27,8 @@ #ifndef WIN32 #include #include +#else +#include #endif namespace org::apache::nifi::minifi::io { diff --git a/libminifi/src/io/tls/SecureDescriptorStream.cpp b/libminifi/src/io/tls/SecureDescriptorStream.cpp index 94cd263801..699ef35503 100644 --- a/libminifi/src/io/tls/SecureDescriptorStream.cpp +++ b/libminifi/src/io/tls/SecureDescriptorStream.cpp @@ -24,6 +24,9 @@ #include #include "io/validation.h" #include "utils/gsl.h" +#ifdef WIN32 +#include +#endif namespace org::apache::nifi::minifi::io { diff --git a/minifi_main/MiNiFiWindowsService.h b/minifi_main/MiNiFiWindowsService.h index 8e99d73190..add30dc331 100644 --- a/minifi_main/MiNiFiWindowsService.h +++ b/minifi_main/MiNiFiWindowsService.h @@ -20,6 +20,7 @@ #ifdef WIN32 #include +#include #include "core/Core.h"