summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-09-21 18:59:43 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-09-21 19:08:32 -0400
commit395311f7a17c88e34310adc76c84cdee83c0ca46 (patch)
tree1713b64df85ebcb4be4dcfbcb704fc2463290d1c
parenta7fba55fcfd3630b22a01088a5837688f94d15b8 (diff)
downloadrockbox-395311f7a1.tar.gz
rockbox-395311f7a1.zip
simulator: Make sure we define the right stuff for sigaltstack()
We got some of this stuff through SDL1 implicitly. Change-Id: I349be640ac15f79048d860bb58bae93a74a0e1ec
-rw-r--r--firmware/export/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index d4e77cf893..bedf7df4e2 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -1265,6 +1265,12 @@ Lyre prototype 1 */
#endif
#endif
+#if defined(HAVE_SIGALTSTACK_THREADS)
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 600 /* For sigaltstack */
+#endif
+#endif
+
#ifdef CPU_MIPS
#include <stdbool.h> /* MIPS GCC fix? */
#endif