about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedzstd.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-11-17 11:30:30 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-11-17 11:30:30 +0100
commitffc875c2d6b3262e472cfb2dfb6682eb9b21c96e (patch)
treeb2e3e4c582392687f66cf840f5dd43fd438e6567 /src/wrapped/wrappedzstd.c
parent8a180e3892b31417c6bdec0355788605b0dca0e6 (diff)
downloadbox64-ffc875c2d6b3262e472cfb2dfb6682eb9b21c96e.tar.gz
box64-ffc875c2d6b3262e472cfb2dfb6682eb9b21c96e.zip
[WRAPPER] Added wrapped libzstd.so.1 support, with new wrapperhelper
Diffstat (limited to 'src/wrapped/wrappedzstd.c')
-rw-r--r--src/wrapped/wrappedzstd.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/wrapped/wrappedzstd.c b/src/wrapped/wrappedzstd.c
new file mode 100644
index 00000000..af9bf645
--- /dev/null
+++ b/src/wrapped/wrappedzstd.c
@@ -0,0 +1,19 @@
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+
+const char* zstdName = "libzstd.so.1";
+#define LIBNAME zstd
+#define ALTNAME "libzstd.so"
+
+#include "wrappedlib_init.h"
+