arch: posix: Bugfix in POSIX cheats header

In 8dc69e09da (#10280)
the POSIX API main kconfig option was replaced from
PTHREAD_IPC to POSIX_API.
But the posix_cheats.h header was left using the old option.
This means that some applications/tests which were not
selecting the PTHREAD_IPC API, but using some other Zephyr
POSIX compatible APIs could have trouble when compiled for the
POSIX architecture.

Fixes #13011

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2019-02-03 15:16:38 +01:00 committed by Anas Nashif
commit 1305a9eb35

View file

@ -23,7 +23,7 @@
* some prefix, and we ensure this header is included * some prefix, and we ensure this header is included
*/ */
#ifdef CONFIG_PTHREAD_IPC #ifdef CONFIG_POSIX_API
#define timespec zap_timespec #define timespec zap_timespec
#define timeval zap_timeval #define timeval zap_timeval
@ -189,7 +189,7 @@
#define stat zap_stat #define stat zap_stat
#define mkdir zap_mkdir #define mkdir zap_mkdir
#endif /* CONFIG_PTHREAD_IPC */ #endif /* CONFIG_POSIX_API */
#endif /* CONFIG_ARCH_POSIX */ #endif /* CONFIG_ARCH_POSIX */