summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devnode/mig-mutate.h2
-rw-r--r--term/Makefile4
-rw-r--r--trans/Makefile4
3 files changed, 8 insertions, 2 deletions
diff --git a/devnode/mig-mutate.h b/devnode/mig-mutate.h
index 0656014f..b7a9ed60 100644
--- a/devnode/mig-mutate.h
+++ b/devnode/mig-mutate.h
@@ -25,3 +25,5 @@
end_using_port_info (port_info_t)
#define NOTIFY_IMPORTS \
import "libports/mig-decls.h";
+#define DEVICE_IMPORTS \
+ import "libports/ports.h";
diff --git a/term/Makefile b/term/Makefile
index 1419d2a3..78766041 100644
--- a/term/Makefile
+++ b/term/Makefile
@@ -33,6 +33,8 @@ include ../Makeconf
device_replyServer-CPPFLAGS = -DTypeCheck=0 -Wno-unused # XXX
-device_reply-MIGSFLAGS = -DMACH_PAYLOAD_TO_PORT=ports_payload_get_name
+device_reply-MIGSFLAGS=\
+ "-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name" \
+ "-DDEVICE_IMPORTS=import \"$(srcdir)/../libports/ports.h\";"
tioctl-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h
term-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h
diff --git a/trans/Makefile b/trans/Makefile
index 2fdcd38b..65b51d12 100644
--- a/trans/Makefile
+++ b/trans/Makefile
@@ -45,7 +45,9 @@ ifsock-MIGSFLAGS=\
"-DIFSOCK_IMPORTS=import \"../libtrivfs/mig-decls.h\";"
# device_replyServer is used by the streamio translator.
-device_reply-MIGSFLAGS="-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name"
+device_reply-MIGSFLAGS=\
+ "-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name" \
+ "-DDEVICE_IMPORTS=import \"$(srcdir)/../libports/ports.h\";"
# fsysServer is only used by the symlink translator which does not use
# libports. Disable the default payload to port conversion.