aports/main/libffi/use-stdc-compatible-linux-define.patch
Mobile Stream a64a6472b2 main/libffi: check for __linux__ not linux on mips*
The latter is not available in -std=c99 (e.g. as used by python3 build)
and ffitarget.h tries to include sgidefs.h from a wrong location.
2018-09-03 17:43:32 +00:00

12 lines
262 B
Diff

--- a/src/mips/ffitarget.h
+++ b/src/mips/ffitarget.h
@@ -32,7 +32,7 @@
#error "Please do not include ffitarget.h directly into your source. Use ffi.h instead."
#endif
-#ifdef linux
+#ifdef __linux__
# include <asm/sgidefs.h>
#elif defined(__rtems__)
/*