We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4745fc8 commit ade9448Copy full SHA for ade9448
components/sock_utils/include/netdb_macros.h
@@ -5,6 +5,17 @@
5
*/
6
#pragma once
7
8
+#include "sdkconfig.h"
9
+#ifndef CONFIG_IDF_TARGET_LINUX
10
+#include <netinet/in.h> // For network-related definitions
11
+#include <sys/socket.h> // For socket-related definitions
12
+#include <net/if.h> // For interface flags (e.g., IFF_UP)
13
+#include <netdb.h> // For NI_NUMERICHOST, NI_NUMERICSERV, etc.
14
+#include <errno.h> // For EAI_BADFLAGS
15
+#include <sys/un.h> // For AF_UNIX
16
+#include <sys/types.h> // For PF_LOCAL
17
+#endif
18
+
19
#ifndef NI_NUMERICHOST
20
#define NI_NUMERICHOST 0x1
21
#endif
0 commit comments