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

changes needed to work with OpenBSD 6.4 #22

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@peterljung
Copy link

commented Apr 15, 2019

I had to do these changes to make it compile in OpenBSD 6.4 running for Arduino Uno.
I don't know if this compatible with other platforms.

@oxr463

This comment has been minimized.

Copy link

commented Apr 15, 2019

Perhaps you could put your changes in #ifdef guards? Then for compiling, one could use -D_OPENBSD_SOURCE or the like.

@peterljung

This comment has been minimized.

Copy link
Author

commented Apr 19, 2019

Yes that could work, but I don't know how to use it as a command line option to BSD make.
But I can add the define to to CXXDEFS in the Makefile to make it work.

CXXDEFS = -DF_CPU=$(F_CPU) -DARDUINO=100 -D_OPENBSD_SOURCE

@oxr463

This comment has been minimized.

Copy link

commented Apr 19, 2019

Per the man page, it would just be make -D_OPENBSD_SOURCES, (See: https://man.openbsd.org/make).

@technoblogy

This comment has been minimized.

Copy link
Owner

commented Apr 20, 2019

Thank you. I'll add a link to this thread from the documentation for Debian and OpenBSD users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.