fix: wasi has endian.h

This commit is contained in:
Haoxiang Fei 2025-05-16 16:39:10 +08:00 committed by Christian Clason
parent 299f8a9fb9
commit 06537fda83

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