Skip to content

Commit

Permalink
src/core/linux/SDL_threadprio.c: fix build without threads
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ffontaine committed Feb 10, 2020
1 parent ed10d94 commit cbc65ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/linux/SDL_threadprio.c
Expand Up @@ -22,6 +22,7 @@

#ifdef __LINUX__

#include "SDL_error.h"
#include "SDL_stdinc.h"

#if !SDL_THREADS_DISABLED
Expand Down

0 comments on commit cbc65ce

Please sign in to comment.