Am I doing something wrong or is something just messed up??
This is the patch I use: diff -u stddef.h stddef.h.sav
--- stddef.h Wed Dec 1 07:44:15 1993
+++ stddef.h.sav Sun Jul 7 01:07:57 1996
@@ -6,6 +6,16 @@
typedef unsigned int size_t;
#endif
+/*
+#ifdef wchar_t
+#undef wchar_t
+#endif
+*/
+
+#ifndef _WCHAR_T
+typedef unsigned long wchar_t;
+#endif /* _WCHAR_T */
+
#undef NULL
#define NULL ((void *)0)
This is the exact text of the error message I get.
In file included from drivers/char/conmakehash.c:18:
/usr/include/stdlib.h:333: parse error before `*'
/usr/include/stdlib.h:336: parse error before `wchar_t'
/usr/include/stdlib.h: In function `mblen':
/usr/include/stdlib.h:340: `wchar_t' undeclared (first use this function)
/usr/include/stdlib.h:340: (Each undeclared identifier is reported only once
/usr/include/stdlib.h:340: for each function it appears in.)
/usr/include/stdlib.h:340: parse error before `)'
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:345: parse error before `*'
/usr/include/stdlib.h:347: parse error before `*'
The version header for /usr/include/stdlib.h is:
/*
* ANSI Standard: 4.10 GENERAL UTILITIES <stdlib.h>
*/
It is listed as:
-rw-r--r-- 1 bin bin 15134 Wed Mar 29 19:35:10 1995 stdlib.h
Finally, stddef in /usr/include/linux is listed as:
-rw------- 1 root root 243 Wed Dec 1 07:44:15 1993 stddef.h
Please help me.
I am not currently subscribed to this list, as I am not a
kernel developer. I sent this message here because there
is no person specified as maintainer of kernel include
files in the MAINTAINERS file. Therefore, kindly cc responses
to my email address
That you very much
Algis Rudys
arudys@gsgis.k12.va.us