0001-src-core-linux-SDL_threadprio.c-fix-build-without-th.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From cb51ec369186628e016a10ccf25b2b26d5d2ef85 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Mon, 10 Feb 2020 21:31:36 +0100
  4. Subject: [PATCH] src/core/linux/SDL_threadprio.c: fix build without threads
  5. Add an include on SDL_error.h to avoid the following build failure
  6. without threads:
  7. /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: build/.libs/SDL_threadprio.o: in function `SDL_LinuxSetThreadPriority_REAL':
  8. SDL_threadprio.c:(.text+0x0): undefined reference to `SDL_Unsupported'
  9. Fixes:
  10. - http://autobuild.buildroot.org/results/7f7712c5bd47de4a3fcec1e0d0526fd5a3ecd532
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. [Upstream status: https://bugzilla.libsdl.org/show_bug.cgi?id=4971]
  13. ---
  14. src/core/linux/SDL_threadprio.c | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/src/core/linux/SDL_threadprio.c b/src/core/linux/SDL_threadprio.c
  17. index 162b1a3f1..2cbc4cb48 100644
  18. --- a/src/core/linux/SDL_threadprio.c
  19. +++ b/src/core/linux/SDL_threadprio.c
  20. @@ -22,6 +22,7 @@
  21. #ifdef __LINUX__
  22. +#include "SDL_error.h"
  23. #include "SDL_stdinc.h"
  24. #if !SDL_THREADS_DISABLED
  25. --
  26. 2.24.1