mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-24 10:32:32 +00:00
make sheep_net removable from Linux 2.6.31 onward
This commit is contained in:
parent
3a36a1e456
commit
9ae8499d64
@ -462,8 +462,7 @@ static ssize_t sheep_net_write(struct file *f, const char *buf, size_t count, lo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Transmit packet */
|
/* Transmit packet */
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
|
||||||
/* XXX: unsure which version needs this */
|
|
||||||
atomic_add(skb->truesize, &v->skt->wmem_alloc);
|
atomic_add(skb->truesize, &v->skt->wmem_alloc);
|
||||||
#endif
|
#endif
|
||||||
skb->sk = v->skt;
|
skb->sk = v->skt;
|
||||||
|
Loading…
Reference in New Issue
Block a user