From: Alan Cox Date: Fri, 11 May 2018 22:38:44 +0000 (+0100) Subject: net_native: ifdef for convenience X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bc00eb317e33abbc7a75a0b1546a5f0457e01811;p=FUZIX.git net_native: ifdef for convenience --- 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