Skip to content

Commit 434c6c1

Browse files
committed
Fix includes for multithread profile with zephyr
Signed-off-by: Richard Osterloh <richard.osterloh@gmail.com>
1 parent 83f129a commit 434c6c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/uxr/client/profile/multithread/multithread.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ struct uxrSession;
3333
#include "FreeRTOS.h"
3434
#include "semphr.h"
3535
#elif defined(UCLIENT_PLATFORM_ZEPHYR)
36+
#include <version.h>
37+
#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3, 1, 0)
38+
#include <zephyr/kernel.h>
39+
#else
40+
#include <zephyr.h>
41+
#endif
3642
#elif defined(UCLIENT_PLATFORM_POSIX)
3743
#include <pthread.h>
3844
#endif // ifdef WIN32

0 commit comments

Comments
 (0)