浏览代码

Merge pull request #1629 from Root-Core/patch-1

Adapted POSIX feature defines to be equal to other places
Stefan Profanter 7 年之前
父节点
当前提交
379c564993
共有 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