[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Use DEVICE_IMPORTS to include libports/ports.h
From: |
Flavio Cruz |
Subject: |
[PATCH] Use DEVICE_IMPORTS to include libports/ports.h |
Date: |
Thu, 31 Dec 2015 15:56:31 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
This fixes three compiler warnings about ports_payload_get_name.
* devnode/Makefile: Define DEVICE_IMPORTS.
* term/Makefile: Likewise.
* trans/Makefile: Likewise.
---
diff --git a/devnode/Makefile b/devnode/Makefile
index 0964f8d..e46e4fd 100644
--- a/devnode/Makefile
+++ b/devnode/Makefile
@@ -24,7 +24,9 @@ HURDLIBS = fshelp ihash iohelp ports shouldbeinlibc trivfs
target = devnode
MIGSTUBS = deviceServer.o notifyServer.o
MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h
-device-MIGSFLAGS="-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name"
+device-MIGSFLAGS=\
+ "-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name" \
+ "-DDEVICE_IMPORTS=import \"$(srcdir)/../libports/ports.h\";"
OBJS = $(SRCS:.c=.o) $(MIGSTUBS)
include ../Makeconf
diff --git a/term/Makefile b/term/Makefile
index 1419d2a..7876604 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 2fdcd38..65b51d1 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.
- [PATCH] Use DEVICE_IMPORTS to include libports/ports.h,
Flavio Cruz <=