about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedlibc.c
diff options
context:
space:
mode:
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