s/__NR/SYS/

This commit is contained in:
Jōshin 2018-12-31 11:38:03 -08:00
parent 9a1c8d30fb
commit 2471e6a491

View File

@ -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)