riscv64: fix inconsistent ucontext_t struct tag
authorDrew DeVault <sir@cmpwn.com>
Sat, 5 Dec 2020 18:10:06 +0000 (18:10 +0000)
committerRich Felker <dalias@aerifal.cx>
Sun, 6 Dec 2020 17:07:16 +0000 (12:07 -0500)
ucontext.h depends on the internal struct tag name for namespacing
reasons, and the intent was always for it to be consistent across
archs anyway.

arch/riscv64/bits/signal.h

index b006334..287367d 100644 (file)
@@ -60,10 +60,10 @@ struct sigaltstack {
        size_t ss_size;
 };
 
-typedef struct ucontext_t
+typedef struct __ucontext
 {
        unsigned long uc_flags;
-       struct ucontext_t *uc_link;
+       struct __ucontext *uc_link;
        stack_t uc_stack;
        sigset_t uc_sigmask;
        mcontext_t uc_mcontext;