diff --git a/userspace/falco/app/actions/helpers_inspector.cpp b/userspace/falco/app/actions/helpers_inspector.cpp index f4638daae90..5e34786f6c8 100644 --- a/userspace/falco/app/actions/helpers_inspector.cpp +++ b/userspace/falco/app/actions/helpers_inspector.cpp @@ -24,10 +24,6 @@ limitations under the License. #include "helpers.h" -#ifdef _WIN32 -#define PATH_MAX 260 -#endif - using namespace falco::app; using namespace falco::app::actions; diff --git a/userspace/falco/configuration.cpp b/userspace/falco/configuration.cpp index 9d7a635f4dc..35bcc6cf093 100644 --- a/userspace/falco/configuration.cpp +++ b/userspace/falco/configuration.cpp @@ -27,6 +27,9 @@ limitations under the License. #include #ifndef _WIN32 #include +#else +// Used in the ebpf probe path. +#define PATH_MAX 260 #endif #include "falco_utils.h"