* [PATCH] compat.h: Add NETLINK_SOCK_DIAG.
@ 2015-11-30 7:13 Vinson Lee
0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2015-11-30 7:13 UTC (permalink / raw)
To: trinity
Fix CentOS 6 build error.
CC net/proto-netlink.o
net/proto-netlink.c: In function ‘netlink_rand_socket’:
net/proto-netlink.c:49: error: ‘NETLINK_SOCK_DIAG’ undeclared (first use in this function)
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
include/compat.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/compat.h b/include/compat.h
index 1e8768a..f98fe32 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -265,6 +265,9 @@ enum {
#ifndef NETLINK_CAP_ACK
#define NETLINK_CAP_ACK 10
#endif
+#ifndef NETLINK_SOCK_DIAG
+#define NETLINK_SOCK_DIAG 4
+#endif
/* linux/prctl.h */
#ifndef PR_MCE_KILL_GET
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-30 7:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 7:13 [PATCH] compat.h: Add NETLINK_SOCK_DIAG Vinson Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).