From 5a34b09d7673d936c59b132f020ee1974331398d Mon Sep 17 00:00:00 2001 From: ncvicchi Date: Mon, 23 Dec 2024 15:03:40 -0300 Subject: [PATCH 1/2] fix: removed unnecesary and warning generating strtok_r defines from the PAL --- src/common/pal/include/linux/priv_pal_string.h | 1 - src/common/pal/include/macos/priv_pal_string.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/common/pal/include/linux/priv_pal_string.h b/src/common/pal/include/linux/priv_pal_string.h index abd08a777f..6e6125d304 100644 --- a/src/common/pal/include/linux/priv_pal_string.h +++ b/src/common/pal/include/linux/priv_pal_string.h @@ -4,5 +4,4 @@ #error "Do not include this file. Use pal.h instead" #endif -#define strtok_r strtok_r char **OS_StrBreak(char match, const char *_str, size_t size); diff --git a/src/common/pal/include/macos/priv_pal_string.h b/src/common/pal/include/macos/priv_pal_string.h index abd08a777f..6e6125d304 100644 --- a/src/common/pal/include/macos/priv_pal_string.h +++ b/src/common/pal/include/macos/priv_pal_string.h @@ -4,5 +4,4 @@ #error "Do not include this file. Use pal.h instead" #endif -#define strtok_r strtok_r char **OS_StrBreak(char match, const char *_str, size_t size); From 97e955ef082f372c741bc328fae2f0a6cd7c1d95 Mon Sep 17 00:00:00 2001 From: ncvicchi Date: Mon, 23 Dec 2024 15:29:10 -0300 Subject: [PATCH 2/2] fix: Add PAL to compilation when inventory or syscollector are off --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eaf4436da5..8a2a3dd5bd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,6 +18,7 @@ if(ENABLE_LOGCOLLECTOR OR ENABLE_INVENTORY) else() add_subdirectory(common/config) add_subdirectory(common/logger) + add_subdirectory(common/pal) add_subdirectory(common/utils) add_subdirectory(common/data_provider) add_subdirectory(common/networkHelper)