Commit 4dbc3f09 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

sockets: define NETLINK_SOCK_DIAG in sockets.h

sockets.c: In function ‘preload_socket_modules’:
sockets.c:153:36: error: ‘NETLINK_SOCK_DIAG’ undeclared (first use in this function)
sockets.c:153:36: note: each undeclared identifier is reported only once for each function it appears in

Reported-by: Mr Travis
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent cb398484
...@@ -94,10 +94,6 @@ static int check_map_files(void) ...@@ -94,10 +94,6 @@ static int check_map_files(void)
return -1; return -1;
} }
#ifndef NETLINK_SOCK_DIAG
#define NETLINK_SOCK_DIAG NETLINK_INET_DIAG
#endif
static int check_sock_diag(void) static int check_sock_diag(void)
{ {
int ret; int ret;
......
...@@ -83,4 +83,8 @@ static inline int sk_decode_shutdown(int val) ...@@ -83,4 +83,8 @@ static inline int sk_decode_shutdown(int val)
#define USK_EXT_PARAM "ext-unix-sk" #define USK_EXT_PARAM "ext-unix-sk"
#ifndef NETLINK_SOCK_DIAG
#define NETLINK_SOCK_DIAG NETLINK_INET_DIAG
#endif
#endif /* __CR_SOCKETS_H__ */ #endif /* __CR_SOCKETS_H__ */
...@@ -26,10 +26,6 @@ ...@@ -26,10 +26,6 @@
#include "protobuf.h" #include "protobuf.h"
#include "protobuf/netdev.pb-c.h" #include "protobuf/netdev.pb-c.h"
#ifndef NETLINK_SOCK_DIAG
#define NETLINK_SOCK_DIAG NETLINK_INET_DIAG
#endif
static int ns_fd = -1; static int ns_fd = -1;
static int ns_sysfs_fd = -1; static int ns_sysfs_fd = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment