about summary refs log tree commit diff stats
path: root/src/librarian/library.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-05-09 20:11:03 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-05-09 20:11:03 +0200
commitb1b558d244c58af6a5c56acdd0307533b51cc85c (patch)
treebd80e92ee4315f952973e87839491b53a852fcc3 /src/librarian/library.c
parent6ef734960abfb83501cf2236ae41624c0375f570 (diff)
downloadbox64-b1b558d244c58af6a5c56acdd0307533b51cc85c.tar.gz
box64-b1b558d244c58af6a5c56acdd0307533b51cc85c.zip
Small change to avoid wlib_t declaration in wrappedlibs.h (from box86)
Diffstat (limited to 'src/librarian/library.c')
-rwxr-xr-xsrc/librarian/library.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index 8f9731c2..c09355c7 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -925,14 +925,16 @@ void AddMainElfToLinkmap(elfheader_t* elf)
     lm->l_ld = GetDynamicSection(elf);
 }
 
-void setNeededLibs(wlib_t* wlib, int n, ...)
+void setNeededLibs(library_t* lib, int n, ...)
 {
-    wlib->needed = n;
-    wlib->neededlibs = (char**)calloc(n, sizeof(char*));
+    if(lib->type!=0)
+        return;
+    lib->priv.w.needed = n;
+    lib->priv.w.neededlibs = (char**)calloc(n, sizeof(char*));
     va_list va;
     va_start (va, n);
     for (int i=0; i<n; ++i) {
-        wlib->neededlibs[i] = strdup(va_arg(va, char*));
+        lib->priv.w.neededlibs[i] = strdup(va_arg(va, char*));
     }
     va_end (va);
 }
\ No newline at end of file