I was trying to use SOL_NETLINK in setsockopt in Linux, and got an error saying that SOL_NETLINK is not defined although in included the socket.h file.
Googled for s
I just compile-checked this code on a raspbian PI, and it compiles without any warnings.
#include <sys/socket.h> #include <stdio.h> int main(int argc, char *argv[]) { printf ("SOL_SOCKET=%d\n", SOL_SOCKET); return 0; }