about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedlibbsd.c')
-rw-r--r--src/wrapped/wrappedlibbsd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibbsd.c b/src/wrapped/wrappedlibbsd.c
index 8937ed9d..231e74ce 100644
--- a/src/wrapped/wrappedlibbsd.c
+++ b/src/wrapped/wrappedlibbsd.c
@@ -24,10 +24,19 @@ const char* libbsdName = "libbsd.so.0";
 #endif
 #define LIBNAME libbsd
 
+#ifdef STATICBUILD
+void arc4random_addrandom(unsigned char *dat, int datlen);
+void arc4random_stir(void);
+const char *getprogname(void);
+void setprogname(const char *);
+#endif
+
+#ifndef STATICBUILD
 #define PRE_INIT\
     if(1)                                                           \
         lib->w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);    \
     else
+#endif
 
 // define all standard library functions
 #include "wrappedlib_init.h"