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:
Ivan Grokhotkov
2023-11-23 17:01:55 +01:00
parent 1bd417ad68
commit 6f9038809a
3 changed files with 11 additions and 16 deletions

View 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