diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-11-23 19:42:02 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-11-23 19:42:02 +0100 |
| commit | 5c0a82913f9ad106e441cda23347829b64e8aa58 (patch) | |
| tree | fb4a857913429194a3e20dfa4d007ea6d2521cec /src | |
| parent | d7e64d3f11e616bb80196033eb8a3c07e0b13a5d (diff) | |
| download | box64-5c0a82913f9ad106e441cda23347829b64e8aa58.tar.gz box64-5c0a82913f9ad106e441cda23347829b64e8aa58.zip | |
[ANDROID] This should fix Android build
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped/wrappedlibrt.c | 35 |
1 files changed, 35 insertions, 0 deletions
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 <string.h> #include <dlfcn.h> #include <signal.h> +#ifndef ANDROID #include <aio.h> +#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); |