LinuxSir.cn,穿越时空的Linuxsir!

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

升级kdelibs-3.2.1时,编译有警告??

[复制链接]
发表于 2004-3-21 22:43:30 | 显示全部楼层 |阅读模式

  1. /usr/include/sys/cdefs.h:273: warning: `_POSIX_C_SOURCE' is not defined
  2. /usr/include/sys/cdefs.h:279: warning: `_POSIX_C_SOURCE' is not defined
复制代码

那个头文件我没改动过的。。
这是那个头文件:

  1. 265   * In addition, the X/Open Portability Guide, which is now the Single UNIX
  2.    266   * Specification, defines a feature-test macro which indicates the version of
  3.    267   * that specification, and which subsumes _POSIX_C_SOURCE.
  4.    268   *
  5.    269   * Our macros begin with two underscores to avoid namespace screwage.
  6.    270   */
  7.    271
  8.    272  /* Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1. */
  9.    273  #if _POSIX_C_SOURCE == 1
  10.    274  #undef _POSIX_C_SOURCE          /* Probably illegal, but beyond caring now. */
  11.    275  #define _POSIX_C_SOURCE         199009
  12.    276  #endif
  13.    277
  14.    278  /* Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2. */
  15.    279  #if _POSIX_C_SOURCE == 2
  16.    280  #undef _POSIX_C_SOURCE
  17.    281  #define _POSIX_C_SOURCE         199209
  18.    282  #endif
复制代码

这里已经定义了阿??

  1.      1  /usr/include/sys/cdefs.h:#define        _POSIX_C_SOURCE         199009
  2.      2  /usr/include/sys/cdefs.h:#define        _POSIX_C_SOURCE         199209
  3.      3  /usr/include/sys/cdefs.h:#define        _POSIX_C_SOURCE         200112
  4.      4  /usr/include/sys/cdefs.h:#define        _POSIX_C_SOURCE         199506
  5.      5  /usr/include/sys/cdefs.h:#if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)
  6.      6  /usr/include/sys/cdefs.h:#define        _POSIX_C_SOURCE         198808
  7.      7  /usr/include/sys/mount.h:#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
  8.      8  /usr/include/sys/_posix.h:#if (!defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)) || \
  9.      9  /usr/include/sys/_posix.h: (_POSIX_VERSION  >= 199309L && defined(_POSIX_C_SOURCE) && \
复制代码


system is FreeBSD
 楼主| 发表于 2004-3-23 08:14:47 | 显示全部楼层
ding
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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