mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 02:37:19 +02:00
Merge branch 'fix/fix-gcc13-dirent-breaking_v5.3' into 'release/v5.3'
fix(newlib): fix include sys/dirent.h breaking change (v5.3) See merge request espressif/esp-idf!32528
This commit is contained in:
@ -5,9 +5,6 @@ if(${target} STREQUAL "linux")
|
||||
endif()
|
||||
|
||||
set(include_dirs "platform_include")
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang") # TODO LLVM-330
|
||||
list(APPEND include_dirs "clang_include")
|
||||
endif()
|
||||
|
||||
if(BOOTLOADER_BUILD)
|
||||
# Bootloader builds need the platform_include directory (for assert.h), but nothing else
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifdef __clang__ // TODO LLVM-330
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
@ -63,3 +63,8 @@ int alphasort(const struct dirent **d1, const struct dirent **d2);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#else // __clang__ TODO: IDF-10675
|
||||
#include_next <sys/dirent.h>
|
||||
#include <dirent.h>
|
||||
#endif // __clang__
|
Reference in New Issue
Block a user