--382105395-710053199-850046193=:1196
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.3.95.961208173342.14880C@ufp.in-trier.de>
I've sent a message about problems getting 2.1.14 compiled with libc
5.4.17 to this list earlier today - by now, I've found why it didn't work,
and I've written a patch (or maybe just a workaround). Maybe it'll help
some of you. (At least, it generated a fine 2.1.14 and 2.1.14-megapatched
for me.)
The stat.h file didn't include the struct stat definition as provided in
<asm/stat.h>. <linux/stat.h> includes <asm/stat.h> only if __KERNEL__
is defined, which doesn't seem to be the case.
The following patch fixes it (it might break something else, though - I
don't claim I'm an expert on kernel or libc internals):
--- include/sys/stat.h.orig Sun Dec 1 18:02:59 1996
+++ include/sys/stat.h Sun Dec 8 21:04:31 1996
@@ -72,6 +72,8 @@
#endif /*! __SVR4_I386_ABI_L1__*/
};
+#else
+ #include <asm/stat.h>
#endif /* LINUX_VERSION_CODE */
#define LINUX_MKNOD_VERSION 1 /* SVr4 */
--382105395-710053199-850046193=:1196--