-
-
Notifications
You must be signed in to change notification settings - Fork 111
Compile error with #include <unistd.h> #63
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
Comments
I also need unistd.h to use |
I had the same issue and here is how I fixed it ... since "link()" is not actually used nor implemented, I think by making the prototype declaration consistent will simply solve the issue. There are two files to modify: .arduino15/packages/arduino/hardware/sam/1.6.12/cores/arduino/syscalls_sam3.c In both files just add the "const" keyword to the "link()" declaration and all works now. Original error messages:
And:
|
See pull request #91 |
I confirm @yanghao's patch solves the problem. Please accept the pull request. |
IDE: Arduino 1.8.7 on Windows.
Core version: Arduino SAM Boards 1.6.11, installed from Boards Manager
MCVE sketch:
Error message:
The header
unistd.h
is used by ArduinoCbor library in cn-cbor.h.The text was updated successfully, but these errors were encountered: