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) 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);