mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
refactor(linux): deprecated esp_linux_helper.h
This commit is contained in:
parent
f3f8618eee
commit
ae15f1c4f9
@ -15,11 +15,9 @@ idf_component_register(INCLUDE_DIRS ${includes}
|
||||
REQUIRED_IDF_TARGETS linux
|
||||
SRCS ${srcs})
|
||||
|
||||
if(${IDF_TARGET} STREQUAL "linux")
|
||||
find_library(LIB_BSD bsd)
|
||||
if(LIB_BSD)
|
||||
target_link_libraries(${COMPONENT_LIB} PRIVATE ${LIB_BSD})
|
||||
elseif(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
||||
message(WARNING "Missing LIBBSD library. Install libbsd-dev package and/or check linker directories.")
|
||||
endif()
|
||||
endif()
|
||||
|
@ -5,11 +5,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* NOTE: This file is deprecated and will be removed in the future.
|
||||
* Use include sys/cdefs.h instead, it will also include
|
||||
* the corresponding libbsd header. TODO: IDF-9391
|
||||
*/
|
||||
#warning "This file is deprecated, as __containerof is available via libbsd. To use __containerof, include string.h."
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
Loading…
Reference in New Issue
Block a user