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

make error syscall #40

Open
varshadqz opened this issue Dec 16, 2020 · 2 comments
Open

make error syscall #40

varshadqz opened this issue Dec 16, 2020 · 2 comments

Comments

@varshadqz
Copy link

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.

@dsprenkels
Copy link
Owner

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?

@varshadqz
Copy link
Author

I am using WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants