[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] lib/vfscore: Correct the macro name of UK_LIBC_SYSCALLS



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@xxxxxxxxxxx>
Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 lib/vfscore/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c
index 11bfa93..0ecad74 100644
--- a/lib/vfscore/main.c
+++ b/lib/vfscore/main.c
@@ -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;
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.