mtest06/shmat1: Fix build for undefined struct ucontext
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).
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/mem/mtest06/shmat1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/mem/mtest06/shmat1.c +1 -1
@@ -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