about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c3
-rwxr-xr-xsrc/wrapped/wrappedlibc_private.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 4d2f2b1c..9cb00857 100755
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2726,6 +2726,9 @@ EXPORT char* my___progname_full = NULL;
 EXPORT char* my_program_invocation_name = NULL;
 EXPORT char* my_program_invocation_short_name = NULL;
 
+// ignoring this for now
+EXPORT char my___libc_single_threaded = 0;
+
 #define PRE_INIT\
     if(box64_tcmalloc_minimal)                                      \
         lib->priv.w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);    \
diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h
index a3691d83..eed71f36 100755
--- a/src/wrapped/wrappedlibc_private.h
+++ b/src/wrapped/wrappedlibc_private.h
@@ -2301,4 +2301,6 @@ GOM(__deregister_frame_info, pFp)
 DATAM(program_invocation_name, sizeof(void*))
 DATAM(program_invocation_short_name, sizeof(void*))
 
+DATAM(__libc_single_threaded, 1)
+
 GO(iconvctl, iFlip)
\ No newline at end of file