[PATCH] 2.5.42 Allow building with CONFIG_NET=n

From: Eric W. Biederman (ebiederm@xmission.com)
Date: Sun Oct 13 2002 - 13:04:29 EST


This is a minimal patch that allows 2.5.42 to build when
you don't want networking support.

Eric

--- linux-2.5.42/net/socket.c Fri Oct 11 22:21:39 2002
+++ linux-2.5.42.eb1/net/socket.c Sun Oct 13 11:40:03 2002
@@ -691,6 +691,7 @@
 
         unlock_kernel();
         sock = SOCKET_I(inode);
+#ifdef CONFIG_NET
         if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) {
                 err = dev_ioctl(cmd, (void *)arg);
         } else
@@ -699,6 +700,7 @@
                 err = dev_ioctl(cmd, (void *)arg);
         } else
 #endif /* WIRELESS_EXT */
+#endif /* CONFIG_NET */
         switch (cmd) {
                 case FIOSETOWN:
                 case SIOCSPGRP:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:46 EST