From fb0d757bfe105a3492449536813a8aed160cdd12 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Tue, 24 Oct 2023 16:54:12 +0000 Subject: [PATCH] fix(userspace/falco): use io.h instead of unistd.h on win32 Signed-off-by: Roberto Scolaro --- userspace/falco/app/actions/init_outputs.cpp | 4 ++++ userspace/falco/app/restart_handler.cpp | 4 ++++ userspace/falco/configuration.h | 4 ++++ userspace/falco/yaml_helper.h | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/userspace/falco/app/actions/init_outputs.cpp b/userspace/falco/app/actions/init_outputs.cpp index c690ec59..b3f300db 100644 --- a/userspace/falco/app/actions/init_outputs.cpp +++ b/userspace/falco/app/actions/init_outputs.cpp @@ -16,7 +16,11 @@ limitations under the License. */ #include +#ifdef _WIN32 +#include +#else #include +#endif #include "actions.h" diff --git a/userspace/falco/app/restart_handler.cpp b/userspace/falco/app/restart_handler.cpp index 615aa08a..615d641d 100644 --- a/userspace/falco/app/restart_handler.cpp +++ b/userspace/falco/app/restart_handler.cpp @@ -21,7 +21,11 @@ limitations under the License. #include #include +#ifdef _WIN32 +#include +#else #include +#endif #if !defined(__APPLE__) #include #endif diff --git a/userspace/falco/configuration.h b/userspace/falco/configuration.h index 47a672f6..052e4a80 100644 --- a/userspace/falco/configuration.h +++ b/userspace/falco/configuration.h @@ -19,7 +19,11 @@ limitations under the License. #include #include +#ifdef _WIN32 +#include +#else #include +#endif #include #include #include diff --git a/userspace/falco/yaml_helper.h b/userspace/falco/yaml_helper.h index 19ff0aac..27adeb6a 100644 --- a/userspace/falco/yaml_helper.h +++ b/userspace/falco/yaml_helper.h @@ -19,7 +19,11 @@ limitations under the License. #include #include +#ifdef _WIN32 +#include +#else #include +#endif #include #include #include