Skip to content

Conversation

@peterljung
Copy link

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
Copy link

oxr463 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
Copy link
Author

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
Copy link

oxr463 commented Apr 19, 2019

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

@technoblogy
Copy link
Owner

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants