LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 854|回复: 2

struct timespec redefine ,how to do?

[复制链接]
发表于 2004-4-4 16:36:36 | 显示全部楼层 |阅读模式
编译有unp.h的程序,提示timespec redefine.
原来在time.h那里已定义有,这是unp.h里的

  1. #ifndef HAVE_TIMESPEC_STRUCT
  2. struct timespec {
  3.   time_t        tv_sec;         /* seconds */
  4.   long          tv_nsec;        /* and nanoseconds */
  5. };
  6. /* $$.It timespec$$ */
  7. /* $$.Ib tv_sec$$ */
  8. /* $$.Ib tv_nsec$$ */
  9. #endif
复制代码


请问怎么办呢?:help
发表于 2004-4-4 17:10:18 | 显示全部楼层
#define HAVE_TIMESPEC_STRUCT
 楼主| 发表于 2004-4-4 17:14:45 | 显示全部楼层
哦,懂了,谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表