From b13921f3d20006950d21551958860508858bbc47 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Fri, 20 Dec 2024 14:37:16 +0100 Subject: [PATCH] fix(sockutls): Fix potential macro colission including standard headers --- components/sock_utils/include/netdb_macros.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/sock_utils/include/netdb_macros.h b/components/sock_utils/include/netdb_macros.h index 6c518c9bbe..c0662f39c0 100644 --- a/components/sock_utils/include/netdb_macros.h +++ b/components/sock_utils/include/netdb_macros.h @@ -5,6 +5,16 @@ */ #pragma once +#ifndef CONFIG_IDF_TARGET_LINUX +#include // For network-related definitions +#include // For socket-related definitions +#include // For interface flags (e.g., IFF_UP) +#include // For NI_NUMERICHOST, NI_NUMERICSERV, etc. +#include // For EAI_BADFLAGS +#include // For AF_UNIX +#include // For PF_LOCAL +#endif + #ifndef NI_NUMERICHOST #define NI_NUMERICHOST 0x1 #endif