From 9ae8499d64b5a740aa9ec3abc68dec1263c06868 Mon Sep 17 00:00:00 2001 From: Masaq- Date: Thu, 28 May 2015 02:03:03 +0000 Subject: [PATCH] make sheep_net removable from Linux 2.6.31 onward --- BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c b/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c index 49c2fc5d..32065835 100644 --- a/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c +++ b/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c @@ -462,8 +462,7 @@ static ssize_t sheep_net_write(struct file *f, const char *buf, size_t count, lo } /* Transmit packet */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0) - /* XXX: unsure which version needs this */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) atomic_add(skb->truesize, &v->skt->wmem_alloc); #endif skb->sk = v->skt;