src/core/linux/SDL_threadprio.c: fix build without threads
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 10 Feb 2020 13:56:53 -0800
changeset 134998b93225188c8
parent 13498 0c915d307499
child 13500 646925aa63bf
src/core/linux/SDL_threadprio.c: fix build without threads
Add an include on SDL_error.h to avoid the following build failure
without threads:

/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':
SDL_threadprio.c:(.text+0x0): undefined reference to `SDL_Unsupported'

Fixes:
- http://autobuild.buildroot.org/results/7f7712c5bd47de4a3fcec1e0d0526fd5a3ecd532

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
src/core/linux/SDL_threadprio.c
     1.1 --- a/src/core/linux/SDL_threadprio.c	Mon Feb 10 12:53:54 2020 -0500
     1.2 +++ b/src/core/linux/SDL_threadprio.c	Mon Feb 10 13:56:53 2020 -0800
     1.3 @@ -22,6 +22,7 @@
     1.4  
     1.5  #ifdef __LINUX__
     1.6  
     1.7 +#include "SDL_error.h"
     1.8  #include "SDL_stdinc.h"
     1.9  
    1.10  #if !SDL_THREADS_DISABLED