Browse Source

- my manpage sais that init_module, create_module, query_module, delete_module
were removed in linux-2.6

Bernhard Reutner-Fischer 16 years ago
parent
commit
a3cbb12940
2 changed files with 14 additions and 0 deletions
  1. 9 0
      extra/Configs/Config.in
  2. 5 0
      libc/sysdeps/linux/common/Makefile.in

+ 9 - 0
extra/Configs/Config.in

@@ -649,6 +649,15 @@ config UCLIBC_GRP_BUFFER_SIZE
 	  The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
 	  parameter.
 
+config UCLIBC_LINUX_MODULE_24
+	bool "linux <= 2.4 kernel module functions"
+	default n
+	help
+	  init_module, create_module, query_module, delete_module
+	  are used in linux prior to 2.6 for loadable kernel modules.
+
+	  Say N unless you are using an old kernel and require module support.
+
 endmenu
 
 menu "Networking Support"

+ 5 - 0
libc/sysdeps/linux/common/Makefile.in

@@ -24,6 +24,11 @@ ifneq ($(UCLIBC_HAS_SSP),y)
 CSRC := $(filter-out ssp.c,$(CSRC))
 endif
 
+ifneq ($(UCLIBC_LINUX_MODULE_24),y)
+CSRC := $(filter-out create_module.c delete_module.c init_module.c \
+		query_module.c,$(CSRC))
+endif
+
 # fails for some reason
 ifneq ($(strip $(ARCH_OBJS)),)
 CSRC := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC))