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

Small patch to allow build on OS X #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jimmoores
Copy link

This substitutes the use of clock_gettime for the Mach clock service. It also converts ioctl(0, TCSETS ...) and ioctl(0, TCGETS...) calls to tcsetattr and tcgetattr, which will build on Linux or OS X.

@EtchedPixels
Copy link
Owner

I've merged the tcgetattr/setattr bits but I am told that clock_gettime is present in MacOS X 10.12 SDK ?

@jimmoores
Copy link
Author

Fair enough. Unfortunately 10.12 doesn't support any of my hardware. Up to you how to proceed.

@EtchedPixels
Copy link
Owner

Can you move the clock code so that it's in its own file + header and provides a fake clock_ function so the main code doesn't need to change except to include your compat header ?

@jimmoores
Copy link
Author

jimmoores commented Aug 3, 2017 via email

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.

None yet

2 participants