- Spaghetti alert. Fix clash with ancient fwd-decl. This is an unfortunate
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 27 May 2008 13:27:18 +0000 (13:27 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 27 May 2008 13:27:18 +0000 (13:27 -0000)
  combination of linux not providing a useable linux/module.h to userspace and
  mixing legacy-cruft with the current stuff in one insmod.c.

modutils/insmod.c

index 9242e08e4c8e5f4d459b6e1013b2ffaee4f07086..3a8201febb398fda4c8361d49c96fc673c7c7125 100644 (file)
@@ -4183,7 +4183,8 @@ int insmod_main(int argc, char **argv)
 
 #include <sys/mman.h>
 
-#ifdef __UCLIBC__
+#if defined __UCLIBC__ && !ENABLE_FEATURE_2_4_MODULES
+/* big time suckage. The old prototype above renders our nice fwd-decl wrong */
 extern int init_module(void *module, unsigned long len, const char *options);
 #else
 #include <asm/unistd.h>