From 5c0a82913f9ad106e441cda23347829b64e8aa58 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 23 Nov 2023 19:42:02 +0100 Subject: [ANDROID] This should fix Android build --- src/wrapped/wrappedlibrt.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src') diff --git a/src/wrapped/wrappedlibrt.c b/src/wrapped/wrappedlibrt.c index b6042c1e..421b4b35 100644 --- a/src/wrapped/wrappedlibrt.c +++ b/src/wrapped/wrappedlibrt.c @@ -4,7 +4,9 @@ #include #include #include +#ifndef ANDROID #include +#endif #include "wrappedlibs.h" @@ -77,6 +79,7 @@ EXPORT int my_timer_create(x64emu_t* emu, uint32_t clockid, void* sevp, timer_t* return timer_create(clockid, &sevent, timerid); } +#ifndef ANDROID EXPORT int my_aio_cancel(x64emu_t emu, int fd, struct aiocb* aiocbp) { if(aiocbp && aiocbp->aio_sigevent.sigev_notify == SIGEV_THREAD) @@ -117,6 +120,38 @@ EXPORT int mylio_listio(x64emu_t* emu, int mode, struct aiocb* list[], int nent, } return my->lio_listio(mode, list, nent, sig?(&sevent):sig); } +#else +EXPORT int my_aio_cancel(x64emu_t emu, int fd, void* aiocbp) +{ + errno = ENNOSYS; + return -1; +} +EXPORT int my_aio_read(x64emu_t emu, void* aiocbp) +{ + errno = ENNOSYS; + return -1; +} +EXPORT int my_aio_read64(x64emu_t emu, void* aiocbp) +{ + errno = ENNOSYS; + return -1; +} +EXPORT int my_aio_write(x64emu_t emu, void* aiocbp) +{ + errno = ENNOSYS; + return -1; +} +EXPORT int my_aio_write64(x64emu_t emu, void* aiocbp) +{ + errno = ENNOSYS; + return -1; +} +EXPORT int mylio_listio(x64emu_t* emu, int mode, void* list[], int nent, struct sigevent* sig) +{ + errno = ENOSYS; + return -1; +} +#endif #define CUSTOM_INIT \ getMy(lib); -- cgit 1.4.1