mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-31 19:24:43 +02:00
Merge pull request #720 from david-cermak/fix/sock_utils_define_conflict
[sock-utils] Fix potential macro conflict
This commit is contained in:
@@ -3,6 +3,6 @@ commitizen:
|
|||||||
bump_message: 'bump(sockutls): $current_version -> $new_version'
|
bump_message: 'bump(sockutls): $current_version -> $new_version'
|
||||||
pre_bump_hooks: python ../../ci/changelog.py sock_utils
|
pre_bump_hooks: python ../../ci/changelog.py sock_utils
|
||||||
tag_format: sock_utils-v$version
|
tag_format: sock_utils-v$version
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
version_files:
|
version_files:
|
||||||
- idf_component.yml
|
- idf_component.yml
|
||||||
|
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.2.1](https://github.com/espressif/esp-protocols/commits/sock_utils-v0.2.1)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Fix potential macro colission including standard headers ([ade9448c](https://github.com/espressif/esp-protocols/commit/ade9448c))
|
||||||
|
|
||||||
## [0.2.0](https://github.com/espressif/esp-protocols/commits/sock_utils-v0.2.0)
|
## [0.2.0](https://github.com/espressif/esp-protocols/commits/sock_utils-v0.2.0)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
description: The component provides helper implementation of common system/socket utilities
|
description: The component provides helper implementation of common system/socket utilities
|
||||||
url: https://github.com/espressif/esp-protocols/tree/master/components/sock_utils
|
url: https://github.com/espressif/esp-protocols/tree/master/components/sock_utils
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@@ -5,6 +5,17 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
#ifndef CONFIG_IDF_TARGET_LINUX
|
||||||
|
#include <netinet/in.h> // For network-related definitions
|
||||||
|
#include <sys/socket.h> // For socket-related definitions
|
||||||
|
#include <net/if.h> // For interface flags (e.g., IFF_UP)
|
||||||
|
#include <netdb.h> // For NI_NUMERICHOST, NI_NUMERICSERV, etc.
|
||||||
|
#include <errno.h> // For EAI_BADFLAGS
|
||||||
|
#include <sys/un.h> // For AF_UNIX
|
||||||
|
#include <sys/types.h> // For PF_LOCAL
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NI_NUMERICHOST
|
#ifndef NI_NUMERICHOST
|
||||||
#define NI_NUMERICHOST 0x1
|
#define NI_NUMERICHOST 0x1
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user