Fix build with old linux/netlink.h

* socketutils.c: Provide a fallback definition of NETLINK_SOCK_DIAG.

Fixes: 5c256356 ("Do not include xlat/netlink_protocols.h twice")
This commit is contained in:
Дмитрий Левин 2017-04-11 04:04:37 +00:00
parent 5c25635603
commit 831c8106ca

View File

@ -42,6 +42,10 @@
# define UNIX_PATH_MAX sizeof(((struct sockaddr_un *) 0)->sun_path)
#endif
#ifndef NETLINK_SOCK_DIAG
# define NETLINK_SOCK_DIAG 4
#endif
typedef struct {
unsigned long inode;
char *details;