From: Dmitry V. Levin Date: Tue, 11 Apr 2017 04:04:37 +0000 (+0000) Subject: Fix build with old linux/netlink.h X-Git-Tag: v4.17~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=831c8106cab1be1bd73d334dcbd86419693c211f;p=strace 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") --- diff --git a/socketutils.c b/socketutils.c index 2f86c4dc..eb061744 100644 --- a/socketutils.c +++ b/socketutils.c @@ -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;