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 <[email protected]>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to