Correct the name from UK_LIBC_SYSCALL to UK_LIBC_SYSCALLS
Otherwise the linking will report:
libs/newlib/musl-imported/src/termios/tcsetattr.c:35:
undefined reference to `ioctl'
/bin/ld:
apps/sqlite/build/sqlite_kvm-x86_64.o: in
function `tcgetattr':
libs/newlib/musl-imported/src/termios/tcgetattr.c:30:
undefined reference to `ioctl'
Reported-by: Alexander Jung <a.jung@lancs.ac.uk>
Signed-off-by: Jia He <justin.he@arm.com>
Reviewed-by: Alexander Jung <a.jung@lancs.ac.uk>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #204
return -error;
}
-#if UK_LIBC_SYSCALL
+#if UK_LIBC_SYSCALLS
int ioctl(int fd, unsigned long int request, ...)
{
va_list ap;