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

Compile issues on MacOSX #11

Open
job opened this issue Dec 7, 2019 · 2 comments
Open

Compile issues on MacOSX #11

job opened this issue Dec 7, 2019 · 2 comments

Comments

@job
Copy link
Collaborator

job commented Dec 7, 2019

There seem to be at least 2 problems:

MacOSX doesn't seem to have SOCK_CLOEXEC, so perhaps #define SOCK_CLOEXEC FD_CLOEXEC in a header is useful?

Also, MacOSX doesn't have ppoll(), so probably should use poll() instead? Is &oldmask critical in proc_rsync()?

@job job changed the title Making this work on MacOSX Compile issues on MacOSX Dec 7, 2019
@job
Copy link
Collaborator Author

job commented Apr 2, 2020

Does this approach perhaps work? https://github.com/ArduPilot/ardupilot/pull/8593/files

@kristapsdz
Copy link
Owner

CLOEXEC is the easy part: it's the ppoll(2) that's the hard part. I'll need to do this on NetBSD as well---I'll get around to it!

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

No branches or pull requests

2 participants