Trying to build paho_c_pub.c with help of Visual Studio 2019 on my Raspberry Pi machine connected via ssh. Code uses structure sigaction
from <signal.h> that is not visible by compiler:
Error invalid application of ‘sizeof’ to incomplete type ‘struct sigaction’
Error storage size of ‘sa’ isn’t known
I have no such errors when I build code in console:
cc paho_c_sub.c pubsub_opts.c -o paho_c_sub -l paho-mqtt3as
What is wrong with Visual Studio C project configuration?