]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/vfscore: Correct the macro name of UK_LIBC_SYSCALLS
authorJia He <justin.he@arm.com>
Thu, 13 May 2021 08:28:33 +0000 (16:28 +0800)
committerUnikraft <monkey@unikraft.io>
Thu, 13 May 2021 14:38:57 +0000 (14:38 +0000)
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

lib/vfscore/main.c

index 11bfa9303a267eecfd90994c43ba1656859374bd..0ecad74eeecd5a222b2372df788f745b994207d3 100644 (file)
@@ -673,7 +673,7 @@ out_errno:
        return -error;
 }
 
-#if UK_LIBC_SYSCALL
+#if UK_LIBC_SYSCALLS
 int ioctl(int fd, unsigned long int request, ...)
 {
        va_list ap;