gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../include -I../../../coregrind -I../../../include -I../../../VEX/pub -DVGA_amd64=1 -DVGO_linux=1 -DVGP_amd64_linux=1 -Winline -Wall -Wshadow -g -m64 -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT stack_switch.o -MD -MP -MF .deps/stack_switch.Tpo -c -o stack_switch.o stack_switch.c stack_switch.c: In function 'main': stack_switch.c:47:4: warning: implicit declaration of function 'clone' [-Wimplicit-function-declaration] stack_switch.c:47:51: error: 'CLONE_VM' undeclared (first use in this function) stack_switch.c:47:51: note: each undeclared identifier is reported only once for each function it appears in stack_switch.c:47:60: error: 'CLONE_FS' undeclared (first use in this function) stack_switch.c:47:69: error: 'CLONE_FILES' undeclared (first use in this function) stack_switch.c:47:81: error: 'CLONE_SIGHAND' undeclared (first use in this function) stack_switch.c:36:10: warning: variable 'pid' set but not used [-Wunused-but-set-variable] make[5]: *** [stack_switch.o] Error 1 $ svn diff Index: memcheck/tests/linux/stack_switch.c =================================================================== --- memcheck/tests/linux/stack_switch.c (revision 11797) +++ memcheck/tests/linux/stack_switch.c (working copy) @@ -1,5 +1,6 @@ #define _XOPEN_SOURCE 600 #define _BSD_SOURCE +#define _GNU_SOURCE #include <stdio.h>
Committed, with enhancements, as r11802.