mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fix sim build for glibc >=2.34
Change-Id: If63787514b6bffc0afb71f9d651f8c6f0c328a2d
This commit is contained in:
parent
4d7327b04d
commit
a234df30df
1 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,16 @@ struct regs
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef HAVE_SIGALTSTACK_THREADS
|
#ifdef HAVE_SIGALTSTACK_THREADS
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#ifdef _DYNAMIC_STACK_SIZE_SOURCE
|
||||||
|
/* glibc 2.34 made MINSIGSTKSZ non-constant. This is a problem for sim
|
||||||
|
* builds. Hosted targets are using ancient glibc where MINSIGSTKSZ is
|
||||||
|
* still a compile time constant. On platforms where this is a problem
|
||||||
|
* (mainly x86-64 and ARM64) the signal stack size can be big, so let's
|
||||||
|
* give a decent amount of space and hope for the best...
|
||||||
|
* FIXME: this isn't a great solution. */
|
||||||
|
#undef MINSIGSTKSZ
|
||||||
|
#define MINSIGSTKSZ 16384
|
||||||
|
#endif
|
||||||
/* MINSIGSTKSZ for the OS to deliver the signal + 0x3000 for us */
|
/* MINSIGSTKSZ for the OS to deliver the signal + 0x3000 for us */
|
||||||
#define DEFAULT_STACK_SIZE (MINSIGSTKSZ+0x3000) /* Bytes */
|
#define DEFAULT_STACK_SIZE (MINSIGSTKSZ+0x3000) /* Bytes */
|
||||||
#elif defined(HAVE_WIN32_FIBER_THREADS)
|
#elif defined(HAVE_WIN32_FIBER_THREADS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue