diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-02-26 19:22:53 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-02-26 19:22:53 +0100 |
| commit | 13404ed090453ffa1a2b475b004b74db7086ff74 (patch) | |
| tree | 9d1fb5cbad4f90ce1dcd2df7f7220b6dea6d4755 /src/wrapped/wrappedlibbsd.c | |
| parent | ff6cc844821439a8f50b68b27e6f1ac5264579c8 (diff) | |
| download | box64-13404ed090453ffa1a2b475b004b74db7086ff74.tar.gz box64-13404ed090453ffa1a2b475b004b74db7086ff74.zip | |
Added ability to staticaly build box64 (for #1045 and #310, maybe a few others tickets)
Diffstat (limited to 'src/wrapped/wrappedlibbsd.c')
| -rw-r--r-- | src/wrapped/wrappedlibbsd.c | 9 |
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" |