patch-2.1.22 linux/include/linux/module.h

Next file: linux/include/linux/net_alias.h
Previous file: linux/include/linux/lapbether.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.21/linux/include/linux/module.h linux/include/linux/module.h
@@ -221,7 +221,7 @@
 
 /* We want the EXPORT_SYMBOL tag left intact for recognition.  */
 
-#elif !defined(EXPORT_SYMTAB)
+#elif !defined(EXPORT_SYMTAB) && defined(CONFIG_MODULES)
 
 #define __EXPORT_SYMBOL(sym,str)   error EXPORT_SYMTAB_not_defined
 #define EXPORT_SYMBOL(var)	   error EXPORT_SYMTAB_not_defined

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov