You are probably passing the "-ansi -Wall" switches to the gcc compiler. You can remove "-ansi" if you do not need it, otherwise try setting the appropriate function definition macro.
Sort of:
#define _POSIX_SOURCE #include <sys/types.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h>
source share