Skip to contentSkip to conversation

mtest06/shmat1: Fix build for undefined struct ucontext

PATCH New Cyril Hrubis 1 participant 1 message Sep 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtest06/shmat1: Fix build for undefined struct ucontext

The struct ucontext was never supposed to be used, the only supported way how to use this structure is to use ucontext_t instead.

This fixes build on i586 where we access the structure members (see the ifdefs in the signal handler).

---
 testcases/kernel/mem/mtest06/shmat1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/mem/mtest06/shmat1.c +1 -1
index 0d6d7a47a..875643083 100644
@@ -109,7 +109,7 @@ int done_shmat = 0;		/* disallow read and writes before shmat      */
 /*									      */
 /******************************************************************************/
 static void sig_handler(int signal,	/* signal number, set to handle SIGALRM       */
-			int code, struct ucontext *ut)
+			int code, ucontext_t *ut)
 {				/* contains pointer to sigcontext structure   */
 #ifdef __i386__
 	unsigned long except;	/* exception type.                            */
Signature · 1 line
2.13.0