有没有CVS for sco open server 5.05 版的?我 从CVS官方网站下载 cvs-1.11.5.tar.gz

编译无法找到 S_ISSOCK出错
---------------------------------------------------------------

把下面的内容存为statfix.h,并在编译出错的.c文件中包含它

#ifndef MACRO_DEFINE_STAT_FIX_H
#define MACRO_DEFINE_STAT_FIX_H

#include

 1<sys stat.h="">   
 2  
 3#ifndef S_ISSOCK   
 4# ifdef _S_ISSOCK   
 5# define S_ISSOCK(m) _S_ISSOCK(m)   
 6# else   
 7# ifdef _S_IFSOCK   
 8# define S_ISSOCK(m) ((m &amp; S_IFMT) == _S_IFSOCK)   
 9# else   
10# ifdef S_IFSOCK   
11# define S_ISSOCK(m) ((m &amp; S_IFMT) == S_IFSOCK)   
12# else   
13# define S_ISSOCK(m) (0)   
14# endif   
15# endif   
16# endif   
17#endif</sys>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus