瀧山と申します。 Vine-2.1.5(kernel-2.2.*)で作ったデバイスドライバを 2.6-r4(kernel-2.4.22)に移植しようとしているのですが いきなり parse errorなどと怒られてしまいました。 -nostdincをつけると、 こんどは他の<linux/***.h>が読み込まれなくなってしまいました 対応方法をお教えください。 エラーメッセージの一部です ---- gcc -c -Wall -Wstrict-prototypes -O -pipe -m486 pci8554.c In file included from /usr/include/linux/wait.h:13, from /usr/include/linux/fs.h:12, from /usr/include/linux/devfs_fs_kernel.h:4, from pci8554.c:27: /usr/include/linux/kernel.h:75: parse error before `size_t' /usr/include/linux/kernel.h:77: parse error before `size_t' In file included from /usr/include/linux/fs.h:15, from /usr/include/linux/devfs_fs_kernel.h:4, from pci8554.c:27: /usr/include/linux/net.h:112: parse error before `ssize_t' /usr/include/linux/net.h:112: warning: no semicolon at end of struct or union In file included from /usr/include/linux/string.h:25, from /usr/include/linux/fs.h:23, from /usr/include/linux/devfs_fs_kernel.h:4, from pci8554.c:27: /usr/include/asm/string.h:47: parse error before `size_t' /usr/include/asm/string.h:48: warning: function declaration isn't a prototype /usr/include/asm/string.h: In function `strncpy': /usr/include/asm/string.h:61: `src' undeclared (first use in this function) /usr/include/asm/string.h:61: (Each undeclared identifier is reported only once /usr/include/asm/string.h:61: for each function it appears in.) /usr/include/asm/string.h:61: `dest' undeclared (first use in this function) /usr/include/asm/string.h:61: `count' undeclared (first use in this function)