about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedutil.c')
-rw-r--r--src/wrapped/wrappedutil.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wrapped/wrappedutil.c b/src/wrapped/wrappedutil.c
index 3d4911aa..91503f78 100644
--- a/src/wrapped/wrappedutil.c
+++ b/src/wrapped/wrappedutil.c
@@ -37,10 +37,18 @@ EXPORT pid_t my_forkpty(x64emu_t* emu, void* amaster, void* name, void* termp, v
     return 0;
 }
 
+#ifdef STATICBUILD
+#include <pty.h>
+#include <utmp.h>
+#endif
+
+#ifdef STATICBUILD
+#else
 #define PRE_INIT\
     if(1)                                                      \
         lib->w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);    \
     else
+#endif
 
 #include "wrappedlib_init.h"