mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 12:51:51 +03:00
Merge pull request #2 from abliss/getrandom
Actually try calling getrandom while configuring
This commit is contained in:
commit
91d5fff630
@ -29,9 +29,9 @@ if not have_getentropy
|
||||
#include <asm/unistd.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
int main() { return !syscall(SYS_getrandom, (void*)0, 0, 0); }
|
||||
int main() { return !(syscall(SYS_getrandom, (void*)0, 0, 0) >= 0); }
|
||||
'''
|
||||
getrandom = cc.links(code, name: 'getrandom syscall available')
|
||||
getrandom = cc.run(code, name: 'getrandom syscall available').returncode() == 0
|
||||
conf_data.set('ENT_GETRANDOM', getrandom)
|
||||
|
||||
if not getrandom
|
||||
|
Loading…
Reference in New Issue
Block a user