public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5.42 Allow building with CONFIG_NET=n
@ 2002-10-13 18:04 Eric W. Biederman
  0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 2002-10-13 18:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel


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:

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

only message in thread, other threads:[~2002-10-13 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-13 18:04 [PATCH] 2.5.42 Allow building with CONFIG_NET=n Eric W. Biederman

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