about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2023-07-25 11:34:30 +0200
committerArjun Shankar <arjun@redhat.com>2024-03-18 18:16:29 +0100
commitb204650058ac29a3f6fcb710b09af4994fc09d9d (patch)
treeafd11febea0a0435fdbf16794899d689b41ad779
parent54e812100df2a6f1d75fbef4e3b45c076599842f (diff)
downloadglibc-b204650058ac29a3f6fcb710b09af4994fc09d9d.tar.gz
glibc-b204650058ac29a3f6fcb710b09af4994fc09d9d.tar.xz
glibc-b204650058ac29a3f6fcb710b09af4994fc09d9d.zip
Include sys/rseq.h in tst-rseq-disable.c
Starting with commit 2c6b4b272e6b4d07303af25709051c3e96288f2d
"nptl: Unconditionally use a 32-byte rseq area", the testcase
misc/tst-rseq-disable is UNSUPPORTED as RSEQ_SIG is not defined.

The mentioned commit removes inclusion of sys/rseq.h in nptl/descr.h.
Thus just include sys/rseq.h in the tst-rseq-disable.c as also done
in tst-rseq.c and tst-rseq-nptl.c.
Reviewed-by: Florian Weimer <fweimer@redhat.com>

(cherry picked from commit 637aac2ae3980de31a6baab236a9255fe853cc76)
-rw-r--r--sysdeps/unix/sysv/linux/tst-rseq-disable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-rseq-disable.c b/sysdeps/unix/sysv/linux/tst-rseq-disable.c
index e1a2c02f78..a46b0d0562 100644
--- a/sysdeps/unix/sysv/linux/tst-rseq-disable.c
+++ b/sysdeps/unix/sysv/linux/tst-rseq-disable.c
@@ -22,6 +22,7 @@
 #include <support/xthread.h>
 #include <sysdep.h>
 #include <thread_pointer.h>
+#include <sys/rseq.h>
 #include <unistd.h>
 
 #ifdef RSEQ_SIG