-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time_unix: namespace zephyr headers #383
Conversation
CC: @pablogs9 |
@clalancette @ahcorde PTAL |
7bf8043
to
9cbf466
Compare
@pablogs9 @clalancette @ahcorde PTAL again. |
e2ff899
to
0df2ddc
Compare
when kernel is above version 3. Signed-off-by: Felipe Neves <felipe.neves@linaro.org>
0df2ddc
to
be19c37
Compare
@fujitatomoya PTAL again also. |
The new way to check version LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty messy, but if this makes it work, it is OK (actually this whole file is messy, but that's a separate problem).
Will run CI on it next.
@clalancette , I agree on you, the solution is not the most elegant but needed to make this supported across Zephyr versions 2.7 and 3.1 the header namespacing in Zephyr is introducing the same problem in others external modules . |
good to go with green CI. |
Basically by definition, this change can't have made the one test on Windows fail. That one is flaky every once in a while anyway. Going ahead and merging this. |
PTAL here: micro-ROS/micro_ros_zephyr_module#85 (comment) |
After version 3, the Zephyr RTOS requires to namespace all its headers with zephyr before including any other header file that belongs to it, this PR checks the version o major number of the kernel and when above 3, namespace the Zephyr specific posix timer implementation.