sss
sss copied to clipboard
make error syscall
I am using Window's subsystem Ubuntu 18.04, when I call make, it gives an error
randombytes.c:77:10: warning: implicit declaration of function ‘syscall’; did you mean ‘sysconf’? [-Wimplicit-function-declaration]
ret = syscall(SYS_getrandom, (char *)buf + offset, chunk, 0);
should I comment #include <sys/syscall.h> from random.h file? Or what is the solution? Please help.
I am trying to use this library in EOS smart contract.
Hmmm. So it looks like sys/syscall.h is correctly included, but it does not actually contain the syscall function.
Are you running on WSL or WSL2?
I am using WSL.