summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/fix-translator-functions.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/fix-translator-functions.patch b/debian/patches/fix-translator-functions.patch
index 1a40e4d8..1bc343e5 100644
--- a/debian/patches/fix-translator-functions.patch
+++ b/debian/patches/fix-translator-functions.patch
@@ -1,3 +1,17 @@
+diff --git a/exec/execmutations.h b/exec/execmutations.h
+index 96b4772..ffcba9c 100644
+--- a/exec/execmutations.h
++++ b/exec/execmutations.h
+@@ -3,6 +3,8 @@
+ #define FILE_INTRAN trivfs_protid_t trivfs_begin_using_protid (file_t)
+ #define FILE_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t)
+
+-#define EXEC_IMPORTS import "priv.h";
++#define EXEC_IMPORTS \
++ import "priv.h"; \
++ import "../libtrivfs/mig-decls.h"; \
+
+ #define SERVERCOPY 1
diff --git a/libtrivfs/Makefile b/libtrivfs/Makefile
index 241b76d..5d27620 100644
--- a/libtrivfs/Makefile
@@ -615,3 +629,16 @@ index 9725dab..46aa97b 100644
/* pfinet6 port classes. */
enum {
PORTCLASS_INET,
+diff --git a/trans/Makefile b/trans/Makefile
+index c0386d0..bdc9681 100644
+--- a/trans/Makefile
++++ b/trans/Makefile
+@@ -35,7 +35,7 @@ password-LDLIBS = $(LIBCRYPT)
+ password-MIGSFLAGS=\
+ "-DIO_INTRAN=trivfs_protid_t trivfs_begin_using_protid (io_t)" \
+ "-DIO_DESTRUCTOR=trivfs_end_using_protid (trivfs_protid_t)" \
+- "-DPASSWORD_IMPORTS=import <hurd/trivfs.h>;"
++ "-DPASSWORD_IMPORTS=import \"../libtrivfs/mig-decls.h\";"
+
+ include ../Makeconf
+