1.1 --- a/test/runtime/jsig/TestJNI.c Fri Jul 19 17:56:27 2013 +0200 1.2 +++ b/test/runtime/jsig/TestJNI.c Fri Jul 19 14:54:54 2013 -0700 1.3 @@ -21,9 +21,9 @@ 1.4 * questions. 1.5 */ 1.6 1.7 +#define _GNU_SOURCE // for the definition of REG_RIP in ucontext.h 1.8 #include <stdio.h> 1.9 #include <jni.h> 1.10 -#define __USE_GNU 1.11 #include <signal.h> 1.12 #include <sys/ucontext.h> 1.13 1.14 @@ -42,8 +42,6 @@ 1.15 JNIEXPORT void JNICALL Java_TestJNI_doSomething(JNIEnv *env, jclass klass, jint val) { 1.16 struct sigaction act; 1.17 struct sigaction oact; 1.18 - pthread_attr_t attr; 1.19 - stack_t stack; 1.20 1.21 act.sa_flags = SA_ONSTACK|SA_RESTART|SA_SIGINFO; 1.22 sigfillset(&act.sa_mask);