diff -rc modutils-2.4.6/include/obj.h modutils-2.4.6-patched/include/obj.h *** modutils-2.4.6/include/obj.h Sun May 6 00:23:41 2001 --- modutils-2.4.6-patched/include/obj.h Fri Jul 6 16:14:11 2001 *************** *** 30,35 **** --- 30,47 ---- #include #include + + #ifdef __dietlibc__ + /* swiped from glibc sys/types.h */ + /* But these were defined by ISO C without the first `_'. */ + typedef unsigned char u_int8_t; + typedef unsigned short int u_int16_t; + typedef unsigned int u_int32_t; + # ifdef __GNUC__ + __extension__ typedef unsigned long long int u_int64_t; + # endif + #endif + #include #include ELF_MACHINE_H diff -rc modutils-2.4.6/insmod/insmod.c modutils-2.4.6-patched/insmod/insmod.c *** modutils-2.4.6/insmod/insmod.c Thu Jan 4 20:45:19 2001 --- modutils-2.4.6-patched/insmod/insmod.c Mon Jul 9 15:02:02 2001 *************** *** 1476,1482 **** error_file = "insmod"; /* To handle repeated calls from combined modprobe */ ! errors = optind = 0; /* Process the command line. */ while ((o = getopt_long(argc, argv, "fhkLmnpqrsSvVxXyYe:o:O:P:R:", --- 1476,1483 ---- error_file = "insmod"; /* To handle repeated calls from combined modprobe */ ! errors = 0; ! optind = 1; /* Process the command line. */ while ((o = getopt_long(argc, argv, "fhkLmnpqrsSvVxXyYe:o:O:P:R:", diff -rc modutils-2.4.6/insmod/kallsyms.c modutils-2.4.6-patched/insmod/kallsyms.c *** modutils-2.4.6/insmod/kallsyms.c Thu Jan 4 20:45:19 2001 --- modutils-2.4.6-patched/insmod/kallsyms.c Mon Jul 9 15:01:52 2001 *************** *** 82,88 **** error_file = "kallsyms"; /* To handle repeated calls from combined modprobe */ ! errors = optind = 0; /* Process the command line. */ while ((c = getopt_long(argc, argv, "Vh", --- 82,89 ---- error_file = "kallsyms"; /* To handle repeated calls from combined modprobe */ ! errors = 0; ! optind = 1; /* Process the command line. */ while ((c = getopt_long(argc, argv, "Vh",