Chinaunix
标题:
难道SCO自己带的头文件都编译通不过?
[打印本页]
作者:
lylouie
时间:
2005-11-05 22:10
标题:
难道SCO自己带的头文件都编译通不过?
我在server.c文件里加一条:
#include <sys/socketvar.h>
cc server.c -lsocket
提示:
"/usr/include/sys/socketvar.h" line 54:error:incomplete struct/union/enum protosw:so_proto
还有73行mblk_t也提示错误!
我打开socketvar.h文件后,发现确实有定义 struct protosw so_proto
那为什么编译通不过呢?
作者:
lylouie
时间:
2005-11-05 23:01
标题:
有了点进步
要加上#include <sys/protosw.h>才能认protosw这个结构,但mblk_t在哪定义的呢?我实在找不着,有没有大虾知道呢?
作者:
xnli2005
时间:
2006-07-22 17:16
加sys/stream.h
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2