13
0

Properly check for syscall (#9845)

This commit is contained in:
Robin Gareus 2024-11-06 04:07:25 +01:00
parent 02fde5f1aa
commit ba4d9709c6
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -355,7 +355,7 @@ def configure(conf):
features = 'c',
mandatory = False,
execute = False,
fragment = "#include <sys/syscall.h>\nint main () { syscall(SYS_ioprio_set, 1, 0, 8192); return 0; }")
fragment = "#include <unistd.h>\n#include <sys/syscall.h>\nint main () { syscall(SYS_ioprio_set, 1, 0, 8192); return 0; }")
if have_sys_ioprio:
conf.define('HAVE_IOPRIO', 1)