mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 18:31:44 +03:00
s/__NR/SYS/
This commit is contained in:
parent
9a1c8d30fb
commit
2471e6a491
@ -29,7 +29,7 @@ if not have_getentropy
|
|||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
int main() { return !syscall(__NR_getrandom, (void*)0, 0, 0); }
|
int main() { return !syscall(SYS_getrandom, (void*)0, 0, 0); }
|
||||||
'''
|
'''
|
||||||
getrandom = compiler.links(code, name : 'getrandom syscall available')
|
getrandom = compiler.links(code, name : 'getrandom syscall available')
|
||||||
conf_data.set('ENT_GETRANDOM', getrandom)
|
conf_data.set('ENT_GETRANDOM', getrandom)
|
||||||
|
Loading…
Reference in New Issue
Block a user