diff mbox series

linux: Add #include <sys/rseq.h> to sched_getcpu.c

Message ID 871q8es6yh.fsf@oldenburg.str.redhat.com
State New
Headers show
Series linux: Add #include <sys/rseq.h> to sched_getcpu.c | expand

Commit Message

Florian Weimer March 13, 2024, 11:32 a.m. UTC
Originally, nptl/descr.h included <sys/rseq.h>, but we removed that
in commit 2c6b4b272e6b4d07303af25709051c3e96288f2d ("nptl:
Unconditionally use a 32-byte rseq area").

Fixes: 2c6b4b272e6b4d07303af25709051c3e96288f2d
Fixes: 1d350aa06091211863e41169729cee1bca39f72f

---
 sysdeps/unix/sysv/linux/sched_getcpu.c | 1 +
 1 file changed, 1 insertion(+)


base-commit: 2173173d57971d042c0ad4b281431ae127e9b5b8
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/sched_getcpu.c b/sysdeps/unix/sysv/linux/sched_getcpu.c
index dfb884568d..7a7915f87b 100644
--- a/sysdeps/unix/sysv/linux/sched_getcpu.c
+++ b/sysdeps/unix/sysv/linux/sched_getcpu.c
@@ -19,6 +19,7 @@ 
 #include <sched.h>
 #include <sysdep.h>
 #include <sysdep-vdso.h>
+#include <sys/rseq.h>
 
 static int
 vsyscall_sched_getcpu (void)