Glibc - error in ucontext.h, but only with -std=c11
问题 I have this minimal helloworld, extended with an include of ucontext.h : #include <ucontext.h> #include <stdio.h> int main(int argc, char** argv) { printf ("hello world!\n"); return 0; } It compiles without warning with gcc-4.9 ( gcc -c hw.c -Wall ). But if I switch to the c11 standard ( gcc -std=c11 -c hw.c -Wall ), I get the following error: $ gcc -std=c11 -c hw.c -Wall In file included from /usr/include/ucontext.h:26:0, from hw.c:1: /usr/include/x86_64-linux-gnu/sys/ucontext.h:137:5: error