* compiling without CONFIG_NET broken in 2.5.41
@ 2002-10-11 4:22 Miles Bader
2002-10-12 2:46 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Miles Bader @ 2002-10-11 4:22 UTC (permalink / raw)
To: linux-kernel
Hi,
I used to be able to compile linux without CONFIG_NET, but in 2.5.41,
doing so makes compilation fail. The reason is that net/socket.c
references `dev_ioctl', which is only defined when CONFIG_NET is
enabled.
I can avoid the problem like this:
--- ../orig/linux-2.5.41/net/socket.c 2002-10-10 11:40:28.000000000 +0900
+++ net/socket.c 2002-10-11 13:06:39.000000000 +0900
@@ -691,9 +691,11 @@
unlock_kernel();
sock = SOCKET_I(inode);
+#ifdef CONFIG_NET
if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) {
err = dev_ioctl(cmd, (void *)arg);
} else
+#endif /* CONFIG_NET */
#ifdef WIRELESS_EXT
if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) {
err = dev_ioctl(cmd, (void *)arg);
It seems to work fine, but I have no idea if this is really the correct
solution or not.
I'd appreciate it if someone could look at this and install a fix.
Thanks,
-Miles
--
The secret to creativity is knowing how to hide your sources.
--Albert Einstein
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-12 2:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-11 4:22 compiling without CONFIG_NET broken in 2.5.41 Miles Bader
2002-10-12 2:46 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox