mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
refactor(linux): Unified libbsd handling
* Users can now use libbsd string.h and sys/cdefs.h functionality (e.g., strlcpy, containerof) on Linux by just including string.h or sys/cdefs.h. In other words, the includes are the same on the Linux target as well as on chips targets (ESP32, etc.). * libbsd linking is done by the linux component (belongs to common components) now instead of handling it separately in each component
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include "esp_tls.h"
|
||||
#include "esp_tls_error_capture_internal.h"
|
||||
|
||||
#if CONFIG_IDF_TARGET_LINUX
|
||||
#include "esp_linux_helper.h"
|
||||
#endif
|
||||
|
||||
typedef struct esp_tls_error_storage {
|
||||
struct esp_tls_last_error parent; /*!< standard esp-tls last error container */
|
||||
int sock_errno; /*!< last socket error captured in esp-tls */
|
||||
|
Reference in New Issue
Block a user