Sfoglia il codice sorgente

riscv64: fix inconsistent ucontext_t struct tag

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.
Drew DeVault 4 anni fa
parent
commit
56f0631d95
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      arch/riscv64/bits/signal.h

+ 2 - 2
arch/riscv64/bits/signal.h

@@ -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;