struct sigaction incomplete error struct sigaction incomplete error c c

struct sigaction incomplete error


Just

#define _XOPEN_SOURCE 700

before any other line in your code, or compile with the -D option to define the preprocessor symbol

gcc ... -D_XOPEN_SOURCE=700 ...


I resolved this by changing the C standard that I was using with gcc.

I changed: gcc -std=c99 ...

to this: gcc -std=gnu99 ...