aports/testing/flightgear/musl-fix_error_h.patch
2025-03-05 00:13:04 +00:00

14 lines
443 B
Diff

There is no <error.h> in musl libc, thus enable the
include only if __GLIB__ is defined.
--- a/3rdparty/iaxclient/lib/libiax2/src/iax.c
+++ b/3rdparty/iaxclient/lib/libiax2/src/iax.c
@@ -75,7 +75,7 @@
// FlightGear: Modified to include FreeBSD
#if !defined(MACOSX) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
#include <malloc.h>
-#if !defined(SOLARIS)
+#if !defined(SOLARIS) && defined(__GLIBC__)
#include <error.h>
#endif
#endif