What does the compilation error "SIG_BLOCK undeclared" mean?

I get an error message error: ‘SIG_BLOCK’ undeclared for this code when compiling with -ansi.

sigprocmask(SIG_BLOCK, &my_sig, NULL);

Did I forget to be explicit about some header file? These are my includes

#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <dirent.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>


Source: gcc

Leave a Reply