summaryrefslogtreecommitdiff
path: root/preload
diff options
context:
space:
mode:
Diffstat (limited to 'preload')
-rw-r--r--preload/Makefile2
-rw-r--r--preload/libsb2.h2
-rw-r--r--preload/sb_exec.c1
3 files changed, 2 insertions, 3 deletions
diff --git a/preload/Makefile b/preload/Makefile
index c163df2..66a42c7 100644
--- a/preload/Makefile
+++ b/preload/Makefile
@@ -3,7 +3,7 @@ objs := wrappers.o libsb2.o sb_exec.o
PROTOTYPEWARNINGS=-Wmissing-prototypes -Wstrict-prototypes
$(D)/libsb2.so: $(call O,$(objs))
-$(D)/libsb2.so: mapping/libmapping.a mapping/liblua.a
+$(D)/libsb2.so: luaif/libluaif.a luaif/liblua.a
$(D)/libsb2.so: CFLAGS := $(CFLAGS) -fPIC -Wall -W \
$(PROTOTYPEWARNINGS)
$(D)/libsb2.so: LDFLAGS := $(LDFLAGS) -Wl,-soname=$(LIBSB2_SONAME) \
diff --git a/preload/libsb2.h b/preload/libsb2.h
index 1382241..5d09771 100644
--- a/preload/libsb2.h
+++ b/preload/libsb2.h
@@ -45,7 +45,7 @@
#include <sys/stat.h>
#include <sys/times.h>
#include <sys/utsname.h>
-#include <asm/unistd.h>
+//#include <asm/unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdarg.h>
diff --git a/preload/sb_exec.c b/preload/sb_exec.c
index 3b3c0d7..219c9b4 100644
--- a/preload/sb_exec.c
+++ b/preload/sb_exec.c
@@ -213,7 +213,6 @@ int run_qemu(char *qemu_bin, char *orig_file,char *file,
my_argv[i++] = qemu_bin;
my_argv[i++] = "-drop-ld-preload";
my_argv[i++] = "-L";
-
my_argv[i++] = "/";
my_argv[i++] = orig_file; /* we're passing the unmapped file
* here, it works because qemu will