public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix 2.5 compiles w/ networking off
@ 2003-01-03 12:44 Tomas Szepe
  0 siblings, 0 replies; only message in thread
From: Tomas Szepe @ 2003-01-03 12:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: lkml

All right I have to admit I can't think of another cunning simile.
We should compile w/ networking switched off entirely, too.

-- 
Tomas Szepe <szepe@pinerecords.com>


--- a/net/socket.c	2002-12-08 20:06:42.000000000 +0100
+++ b/net/socket.c	2003-01-03 13:31:20.000000000 +0100
@@ -742,11 +742,11 @@
 		err = dev_ioctl(cmd, (void *)arg);
 	} else
 #endif  /* CONFIG_NET */
-#ifdef WIRELESS_EXT
+#if defined(CONFIG_NET) && defined (WIRELESS_EXT)
 	if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) {
 		err = dev_ioctl(cmd, (void *)arg);
 	} else
-#endif	/* WIRELESS_EXT */
+#endif /* CONFIG_NET && WIRELESS_EXT */
 	switch (cmd) {
 		case FIOSETOWN:
 		case SIOCSPGRP:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-03 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 12:44 [PATCH] fix 2.5 compiles w/ networking off Tomas Szepe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox