]> granicus.if.org Git - strace/commitdiff
Fix build with old linux/netlink.h
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Apr 2017 04:04:37 +0000 (04:04 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Apr 2017 04:04:37 +0000 (04:04 +0000)
* socketutils.c: Provide a fallback definition of NETLINK_SOCK_DIAG.

Fixes: 5c256356 ("Do not include xlat/netlink_protocols.h twice")
socketutils.c

index 2f86c4dc3ab1f408eb04ebfa7b4f83813e2e4cb4..eb061744e1d294eb9b175d78d4f6ae3922d55258 100644 (file)
 # 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;