about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-05 20:39:53 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-05 20:39:53 +0100
commitbd8506cb06fab2b0ddde3196c59ae42533289a61 (patch)
tree000a09fbb0fe11b5cab5563861d5d774e45816cf /src/wrapped
parent0f73133debd70f02a2447038c60378c2049b2486 (diff)
downloadbox64-bd8506cb06fab2b0ddde3196c59ae42533289a61.tar.gz
box64-bd8506cb06fab2b0ddde3196c59ae42533289a61.zip
Added fork wrapped function
Diffstat (limited to 'src/wrapped')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c4
-rwxr-xr-xsrc/wrapped/wrappedlibc_private.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 56b04f3b..e7ac5156 100755
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -429,7 +429,7 @@ int my_swapcontext(x64emu_t* emu, void* ucp1, void* ucp2);
 // this one is defined in elfloader.c
 int my_dl_iterate_phdr(x64emu_t *emu, void* F, void *data);
 
-
+#endif
 pid_t EXPORT my_fork(x64emu_t* emu)
 {
     // execute atforks prepare functions, in reverse order
@@ -469,7 +469,7 @@ pid_t EXPORT my_vfork(x64emu_t* emu)
     return 0;
     #endif
 }
-#endif
+
 int EXPORT my_uname(struct utsname *buf)
 {
     //TODO: check sizeof(struct utsname)
diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h
index aa5a9434..72f3a4a8 100755
--- a/src/wrapped/wrappedlibc_private.h
+++ b/src/wrapped/wrappedlibc_private.h
@@ -370,7 +370,7 @@ GOM(__cxa_finalize, vFEp)
 //GOW(fopen64, 
 //GO(fopencookie, 
 //GO(__fork, 
-//GOW(fork, 
+GOM(fork, iFEv) // Weak
 //GO(__fortify_fail, 
 //GOW(fpathconf, 
 //GO(__fpending,