Skip to content
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

add freebsd support #223

Merged
merged 1 commit into from
Apr 8, 2020
Merged

add freebsd support #223

merged 1 commit into from
Apr 8, 2020

Conversation

dodsonmg
Copy link
Contributor

@dodsonmg dodsonmg commented Apr 8, 2020

Cross-compiling for FreeBSD often results in satisfying __GNUC__ conditionals if no __FreeBSD__ conditionals are provided. In most cases, it should execute the same code as the __APPLE__ conditionals.

This PR ensures the correct code is executed for FreeBSD. This is necessary in one case (process.c:50). In a second case (process.c:74), it is added for completeness, just in case the __APPLE__ and __GNUC__ cases diverge in the future.

macros.h:34 also checks if __APPLE__ is defined, but separate code to support FreeBSD does not appear to be necessary in this case, as the conditional appears to be iOS-specific.

Signed-off-by: Michael Dodson <md403@cam.ac.uk>
@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 7a33390 into ros2:master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants