about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-04 15:47:06 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-04 15:47:06 +0100
commit6a7997b41eccd62c9743b52e80033a586aebd006 (patch)
treedb25e56e601f64871ba5b87874fb66a9f44d2930
parent2a9d863131229119c7882385e670c488aa88f342 (diff)
downloadbox64-6a7997b41eccd62c9743b52e80033a586aebd006.tar.gz
box64-6a7997b41eccd62c9743b52e80033a586aebd006.zip
[BOX32] Fix mystake on previous commit
-rw-r--r--src/wrapped/wrappedlibc.c6
-rwxr-xr-xsrc/wrapped32/wrappedlibc.c5
2 files changed, 3 insertions, 8 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index ae0cd0fa..f307a0b9 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2154,12 +2154,6 @@ EXPORT int32_t my_nftw(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd,
 }
 #endif
 
-EXPORT void* my32_ldiv(x64emu_t* emu, void* p, int32_t num, int32_t den)
-{
-    *((div_t*)p) = div(num, den);
-    return p;
-}
-
 #ifndef NOALIGN
 EXPORT int32_t my_epoll_ctl(x64emu_t* emu, int32_t epfd, int32_t op, int32_t fd, void* event)
 {
diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c
index e696004a..5e9ccfe9 100755
--- a/src/wrapped32/wrappedlibc.c
+++ b/src/wrapped32/wrappedlibc.c
@@ -1563,13 +1563,14 @@ EXPORT int32_t my32_nftw(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd
 
     return f(pathname, findnftwFct(B), nopenfd, flags);
 }
+#endif
 
 EXPORT void* my32_ldiv(x64emu_t* emu, void* p, int32_t num, int32_t den)
 {
-    *((ldiv_t*)p) = ldiv(num, den);
+    *((div_t*)p) = div(num, den);
     return p;
 }
-#endif
+
 EXPORT int my32_epoll_create(x64emu_t* emu, int size)
 {
     return epoll_create(size);