Skip to content

Commit 29797a2

Browse files
committed
arch: posix: Bugfix in POSIX cheats header
In 8dc69e0 (zephyrproject-rtos#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 zephyrproject-rtos#13011 Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 6904501 commit 29797a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/posix/include/posix_cheats.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* some prefix, and we ensure this header is included
2424
*/
2525

26-
#ifdef CONFIG_PTHREAD_IPC
26+
#ifdef CONFIG_POSIX_API
2727

2828
#define timespec zap_timespec
2929
#define timeval zap_timeval
@@ -189,7 +189,7 @@
189189
#define stat zap_stat
190190
#define mkdir zap_mkdir
191191

192-
#endif /* CONFIG_PTHREAD_IPC */
192+
#endif /* CONFIG_POSIX_API */
193193

194194
#endif /* CONFIG_ARCH_POSIX */
195195

0 commit comments

Comments
 (0)