Index: libcfa/src/concurrency/coroutine.cfa
===================================================================
--- libcfa/src/concurrency/coroutine.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/coroutine.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 #include "coroutine.hfa"
Index: libcfa/src/concurrency/io.cfa
===================================================================
--- libcfa/src/concurrency/io.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/io.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 #if defined(__CFA_DEBUG__)
@@ -23,5 +24,4 @@
 
 #if defined(CFA_HAVE_LINUX_IO_URING_H)
-	#define _GNU_SOURCE         /* See feature_test_macros(7) */
 	#include <errno.h>
 	#include <signal.h>
Index: libcfa/src/concurrency/io/setup.cfa
===================================================================
--- libcfa/src/concurrency/io/setup.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/io/setup.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,5 +15,5 @@
 
 #define __cforall_thread__
-#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#define _GNU_SOURCE
 
 #if defined(__CFA_DEBUG__)
Index: libcfa/src/concurrency/kernel.cfa
===================================================================
--- libcfa/src/concurrency/kernel.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/kernel.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,6 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
+
 // #define __CFA_DEBUG_PRINT_RUNTIME_CORE__
 
Index: libcfa/src/concurrency/kernel/startup.cfa
===================================================================
--- libcfa/src/concurrency/kernel/startup.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/kernel/startup.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 // C Includes
@@ -336,4 +337,8 @@
 	register_tls( proc );
 
+	#if defined(CFA_HAVE_LINUX_LIBRSEQ)
+		rseq_register_current_thread();
+	#endif
+
 	// SKULLDUGGERY: We want to create a context for the processor coroutine
 	// which is needed for the 2-step context switch. However, there is no reason
Index: libcfa/src/concurrency/locks.cfa
===================================================================
--- libcfa/src/concurrency/locks.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/locks.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -16,4 +16,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 #include "locks.hfa"
Index: libcfa/src/concurrency/monitor.cfa
===================================================================
--- libcfa/src/concurrency/monitor.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/monitor.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 #include "monitor.hfa"
Index: libcfa/src/concurrency/mutex.cfa
===================================================================
--- libcfa/src/concurrency/mutex.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/mutex.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -17,4 +17,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 #include "mutex.hfa"
Index: libcfa/src/concurrency/preemption.cfa
===================================================================
--- libcfa/src/concurrency/preemption.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/preemption.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,6 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
+
 // #define __CFA_DEBUG_PRINT_PREEMPTION__
 
Index: libcfa/src/concurrency/ready_queue.cfa
===================================================================
--- libcfa/src/concurrency/ready_queue.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/ready_queue.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,6 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
+
 // #define __CFA_DEBUG_PRINT_READY_QUEUE__
 
@@ -24,5 +26,4 @@
 #include "kernel_private.hfa"
 
-#define _GNU_SOURCE
 #include "stdlib.hfa"
 #include "math.hfa"
Index: libcfa/src/concurrency/thread.cfa
===================================================================
--- libcfa/src/concurrency/thread.cfa	(revision 07033ce5992363b8a9ebaeebb9ea9b449c96ad62)
+++ libcfa/src/concurrency/thread.cfa	(revision 5e2ed05a57cc1c23849d08aceb3fb6e8627aa463)
@@ -15,4 +15,5 @@
 
 #define __cforall_thread__
+#define _GNU_SOURCE
 
 #include "thread.hfa"
