mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(esp_netif): move endian.h to linux component, fix macOS build
Co-authored-by: Radek Tandler <radek.tandler@espressif.com>
This commit is contained in:
parent
1bd417ad68
commit
6f9038809a
@ -1,5 +1,3 @@
|
|||||||
idf_build_get_property(target IDF_TARGET)
|
|
||||||
|
|
||||||
set(srcs_lwip
|
set(srcs_lwip
|
||||||
"lwip/esp_netif_lwip.c"
|
"lwip/esp_netif_lwip.c"
|
||||||
"lwip/esp_netif_sntp.c"
|
"lwip/esp_netif_sntp.c"
|
||||||
@ -17,12 +15,6 @@ set(srcs
|
|||||||
set(include_dirs "include")
|
set(include_dirs "include")
|
||||||
set(priv_include_dirs "private_include")
|
set(priv_include_dirs "private_include")
|
||||||
|
|
||||||
idf_build_get_property(target IDF_TARGET)
|
|
||||||
if(${target} STREQUAL "linux")
|
|
||||||
list(APPEND include_dirs
|
|
||||||
"linux/stubs/include")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CONFIG_PPP_SUPPORT)
|
if(CONFIG_PPP_SUPPORT)
|
||||||
list(APPEND srcs_lwip lwip/esp_netif_lwip_ppp.c lwip/netif/ppp.c)
|
list(APPEND srcs_lwip lwip/esp_netif_lwip_ppp.c lwip/netif/ppp.c)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include_next <endian.h>
|
|
11
components/linux/include/machine/endian.h
Normal file
11
components/linux/include/machine/endian.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
#if __APPLE__
|
||||||
|
#include_next <machine/endian.h>
|
||||||
|
#else
|
||||||
|
#include <endian.h>
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user