mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] aarch64: signal: fix type definition for ucontext_t.uc_link
@ 2018-01-31 23:29 William Pitcock
  2018-02-01  9:51 ` Szabolcs Nagy
  0 siblings, 1 reply; 2+ messages in thread
From: William Pitcock @ 2018-01-31 23:29 UTC (permalink / raw)
  To: musl; +Cc: William Pitcock

When compiling the test program for libucontext, I observed a compiler warning
concerning assignment to the wrong type (`struct __ucontext` vs `struct ucontext`).
Accordingly, ucontext_t.uc_link should be the same structure as ucontext_t itself.
---
 arch/aarch64/bits/signal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h
index 5eb3d91f..1c67313d 100644
--- a/arch/aarch64/bits/signal.h
+++ b/arch/aarch64/bits/signal.h
@@ -59,7 +59,7 @@ struct sigaltstack {
 
 typedef struct __ucontext {
 	unsigned long uc_flags;
-	struct ucontext *uc_link;
+	struct __ucontext *uc_link;
 	stack_t uc_stack;
 	sigset_t uc_sigmask;
 	mcontext_t uc_mcontext;
-- 
2.16.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-01  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 23:29 [PATCH] aarch64: signal: fix type definition for ucontext_t.uc_link William Pitcock
2018-02-01  9:51 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).