浏览代码

Adapted POSIX feature defines

Root-Core 7 年之前
父节点
当前提交
d0e9638a1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/client_subscription_loop.c

+ 1 - 1
examples/client_subscription_loop.c

@@ -2,7 +2,7 @@
  * See http://creativecommons.org/publicdomain/zero/1.0/ for more information. */
 
 /* Enable POSIX features */
-#ifndef _XOPEN_SOURCE
+#if !defined(_XOPEN_SOURCE) && !defined(_WRS_KERNEL)
 # define _XOPEN_SOURCE 600
 #endif
 #ifndef _DEFAULT_SOURCE