From bc00eb317e33abbc7a75a0b1546a5f0457e01811 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 11 May 2018 23:38:44 +0100 Subject: [PATCH] net_native: ifdef for convenience --- Kernel/dev/net/net_native.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kernel/dev/net/net_native.c b/Kernel/dev/net/net_native.c index db56480a..77784971 100644 --- a/Kernel/dev/net/net_native.c +++ b/Kernel/dev/net/net_native.c @@ -4,6 +4,8 @@ #include #include +#ifdef CONFIG_NET_NATIVE + /* This holds the additional kernel context for the sockets */ static struct sockdata sockdata[NSOCKET]; /* This is the inode of the backing file object */ @@ -634,3 +636,5 @@ arg_t net_ioctl(uint8_t op, void *p) void netdev_init(void) { } + +#endif -- 2.34.1