Will have to research on the new interface macOS provides instead of syscall(2). Here is an example error:
error: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported;
please switch to a supported interface. For SYS_kdebug_trace use
kdebug_signpost(). [-Werror,-Wdeprecated-declarations]
return (syscall(symbol, (*array[0]), array[1], (*array[2]), array[3]));
Will have to research on the new interface macOS provides instead of syscall(2). Here is an example error: