Skip to contentSkip to conversation

fix 2.5 compiles w/ networking off

PATCH New Tomas Szepe 1 participant 1 message Jan 3, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix 2.5 compiles w/ networking off

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

Signature · 19 lines
Tomas Szepe <[email protected]>


--- 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: