about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorLeslie Zhai <zhaixiang@loongson.cn>2025-03-06 15:08:09 +0800
committerGitHub <noreply@github.com>2025-03-06 08:08:09 +0100
commiteb039c0449641264122374a5cb0ea6cc6b47f625 (patch)
treefdd55bdab86779cdc482ce4c68bceda74e6e9266 /src
parent0c0f5263e19b4118771c2d2d3cb2e569d952a36f (diff)
downloadbox64-eb039c0449641264122374a5cb0ea6cc6b47f625.tar.gz
box64-eb039c0449641264122374a5cb0ea6cc6b47f625.zip
Fix undefined reference to `epoll_pwait2' for LA64 ABI 1.0 (#2422)
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedlibc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 38f86b59..9a2dd8bf 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2203,7 +2203,7 @@ EXPORT int my_epoll_pwait2(int epfd, void* events, int maxevents, const struct t
 {
     struct epoll_event _events[maxevents];
     //AlignEpollEvent(_events, events, maxevents);
-    #ifdef ANDROID
+    #if defined(ANDROID) || defined(LA64_ABI_1)
     // epoll_pwait2 doesn't exist, to tranforming timeout to int, and from nanosecods to milliseconds...
     int tout = -1;
     if(timeout) {