kernel-netlink: Define SOL_NETLINK for old versions of socket.h

While the kernel defines it since 2005 (2.6.14), some older versions of
socket.h shipped with C libraries might not.  In particular, glibc only
added it with 2.24 in 2016.

Closes strongswan/strongswan#1503
This commit is contained in:
Tobias Brunner
2023-01-10 16:34:07 +01:00
parent 7dbe702269
commit 41b0dff92b
@@ -52,6 +52,11 @@
#include <collections/array.h>
#include <collections/hashtable.h>
/* some older versions of socket.h don't define this yet */
#ifndef SOL_NETLINK
#define SOL_NETLINK 270
#endif
typedef struct private_netlink_socket_t private_netlink_socket_t;
/**