可是我在redhat 9上编译出错,错误如下:
In file included from /usr/include/linux/fs.h:23,
from vfifo.c:17:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from vfifo.c:18:
/usr/include/linux/proc_fs.h:70: parse error before "atomic_t"
/usr/include/linux/proc_fs.h:73: parse error before '}' token
/usr/include/linux/proc_fs.h:203: parse error before "void"
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from vfifo.c:25:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
vfifo.c:27:25: asm/uaccess.h: 没有那个文件或目录
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from /usr/include/linux/locks.h:5,
from /usr/include/linux/devfs_fs_kernel.h:6,
from vfifo.c:41:
/usr/include/linux/timex.h:173: field `time' has incomplete type
/usr/include/linux/timex.h:188: confused by earlier errors, bailing out
在Fedora 6上试了也不行。
小弟经验不足,希望能得到大家的指点。