about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedlibc.c
diff options
context:
space:
mode:
authoralexvorxx <72611580+alexvorxx@users.noreply.github.com>2025-02-26 19:47:42 +0300
committerGitHub <noreply@github.com>2025-02-26 17:47:42 +0100
commit4120dc10bdf79bc4787ff14549ea02da3b7feb21 (patch)
tree6fed38313b4e2bfe4355b15af898ff2f0b7903f6 /src/wrapped32/wrappedlibc.c
parent48f51bd5fef5b9b6ea5ad086cfd44a07c5441d8a (diff)
downloadbox64-4120dc10bdf79bc4787ff14549ea02da3b7feb21.tar.gz
box64-4120dc10bdf79bc4787ff14549ea02da3b7feb21.zip
Fixed Box32 for Winlator Glibc (#2404)
* 1

* 2

* 3

* 4

* Fix

* 5

* 6

* 7

* 8

* revert 8

* 9
Diffstat (limited to 'src/wrapped32/wrappedlibc.c')
-rwxr-xr-xsrc/wrapped32/wrappedlibc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c
index a18f8780..a1b0d67d 100755
--- a/src/wrapped32/wrappedlibc.c
+++ b/src/wrapped32/wrappedlibc.c
@@ -40,8 +40,10 @@
 #include <sys/sysinfo.h>
 #include <sys/time.h>
 #include <regex.h>
+#ifndef WINLATOR_GLIBC
 #include <sys/ipc.h>
 #include <sys/shm.h>
+#endif
 #include <sys/wait.h>
 
 #include "wrappedlibs.h"
@@ -3203,6 +3205,7 @@ EXPORT void my32_regfree(x64emu_t* emu, void* p)
     regfree(&p_l);
 }
 
+#ifndef WINLATOR_GLIBC
 EXPORT void* my32_shmat(x64emu_t*emu, int shmid, void* shmaddr, int flags)
 {
     size_t sz = 0;
@@ -3227,6 +3230,7 @@ EXPORT int my32_shmdt(x64emu_t* emu, void* addr)
 {
     return shmdt(addr);
 }
+#endif
 
 #if 0
 #ifndef __NR_memfd_create