Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Small patch to allow build on OS X#2

Open
jimmoores wants to merge 2 commits intoEtchedPixels:masterfrom
jimmoores:master
Open

Small patch to allow build on OS X#2
jimmoores wants to merge 2 commits intoEtchedPixels:masterfrom
jimmoores:master

Conversation

@jimmoores
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Author

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

@EtchedPixels
Copy link
Copy Markdown
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
Copy Markdown
Author

jimmoores commented Aug 3, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants