Commit df0d696a620bf0bcf946c680ec43f31ee02136cb

Sylvain 2022-02-02T15:22:14

RISCOS: attempt to fix compilation ERANGE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c
index 473c710..75a03ab 100644
--- a/src/thread/pthread/SDL_systhread.c
+++ b/src/thread/pthread/SDL_systhread.c
@@ -41,6 +41,10 @@
 #include "../../core/linux/SDL_dbus.h"
 #endif /* __LINUX__ */
 
+#if __RISCOS__
+#  include <errno.h>
+#endif
+
 #if (defined(__LINUX__) || defined(__MACOSX__) || defined(__IPHONEOS__)) && defined(HAVE_DLOPEN)
 #include <dlfcn.h>
 #ifndef RTLD_DEFAULT