ulisp icon indicating copy to clipboard operation
ulisp copied to clipboard

changes needed to work with OpenBSD 6.4

Open peterljung opened this issue 5 years ago • 4 comments

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.

peterljung avatar Apr 15 '19 19:04 peterljung

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

oxr463 avatar Apr 15 '19 19:04 oxr463

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

peterljung avatar Apr 19 '19 16:04 peterljung

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

oxr463 avatar Apr 19 '19 17:04 oxr463

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

technoblogy avatar Apr 20 '19 11:04 technoblogy