patch-1.3.87 linux/net/socket.c

Next file: linux/net/sysctl_net.c
Previous file: linux/net/netrom/nr_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.86/linux/net/socket.c linux/net/socket.c
@@ -34,6 +34,7 @@
  *					stuff.
  *		Alan Cox	:	sendmsg/recvmsg basics.
  *		Tom Dyas	:	Export net symbols.
+ *		Marcin Dalecki	:	Fixed problems with CONFIG_NET="n".
  *
  *
  *		This program is free software; you can redistribute it and/or
@@ -75,7 +76,7 @@
 #include <asm/system.h>
 #include <asm/segment.h>
 
-#ifdef CONFIG_MODULES
+#if defined(CONFIG_MODULES) && defined(CONFIG_NET)
 extern void export_net_symbols(void);
 #endif
 
@@ -1421,7 +1422,7 @@
 	 *	Export networking symbols to the world.
 	 */
 
-#ifdef CONFIG_MODULES
+#if defined(CONFIG_MODULES) && defined(CONFIG_NET)
 	export_net_symbols();
 #endif
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this