1 diff -urN modutils-2.4.27.orig/include/module.h modutils-2.4.27/include/module.h
2 --- modutils-2.4.27.orig/include/module.h 2003-01-27 11:22:02.000000000 -0500
3 +++ modutils-2.4.27/include/module.h 2004-08-23 19:52:34.756772712 -0400
5 /* For sizeof() which are related to the module platform and not to the
6 environment isnmod is running in, use sizeof_xx instead of sizeof(xx). */
8 +/* Additional test for OE, set tgt_blah correct for the target arch, *not* the
9 + native arch. If int isn't 32bit on the native machine we're in trouble. */
12 +#define tgt_sizeof_char sizeof(char)
13 +#define tgt_sizeof_short sizeof(short)
14 +#define tgt_sizeof_int sizeof(int)
15 +#define tgt_sizeof_long 4
16 +#define tgt_sizeof_char_p 4
17 +#define tgt_sizeof_void_p 4
19 +#define tgt_long_fmt "l"
20 +#define tgt_strtoul strtoul
22 #define tgt_sizeof_char sizeof(char)
23 #define tgt_sizeof_short sizeof(short)
24 #define tgt_sizeof_int sizeof(int)
27 #define tgt_long_fmt "l"
28 #define tgt_strtoul strtoul
31 /* This assumes that long long on a 32 bit system is equivalent to long on the
32 * equivalent 64 bit system. Also that void and char pointers are 8 bytes on
33 * all 64 bit systems. Add per system tweaks if it ever becomes necessary.