fix: wasi has endian.h

(cherry picked from commit 06537fda83)
This commit is contained in:
Haoxiang Fei 2025-05-16 16:39:10 +08:00 committed by Christian Clason
parent d6701c68d3
commit 02f9c1502b

View file

@ -23,7 +23,8 @@
defined(__OpenBSD__) || \
defined(__CYGWIN__) || \
defined(__MSYS__) || \
defined(__EMSCRIPTEN__)
defined(__EMSCRIPTEN__) || \
defined(__wasi__)
#if defined(__NetBSD__)
#define _NETBSD_SOURCE 1