aboutsummaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-04 00:13:47 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-04 00:14:12 +0100
commitf4bff843cd77323d7176b3b1561f50f626e0e452 (patch)
tree78ac31053bc35a7c84f08ddb1e040ae9a60cd676 /mach
parente30c291a6d541fbb728c92725f4744e7765f34f4 (diff)
downloadglibc-f4bff843cd77323d7176b3b1561f50f626e0e452.zip
glibc-f4bff843cd77323d7176b3b1561f50f626e0e452.tar.gz
glibc-f4bff843cd77323d7176b3b1561f50f626e0e452.tar.bz2
hurd: Add missing includes
* mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include <mach/mach_types.h> and <mach/message.h>.
Diffstat (limited to 'mach')
-rw-r--r--mach/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/mach/Makefile b/mach/Makefile
index dcf29a3..d16c44f 100644
--- a/mach/Makefile
+++ b/mach/Makefile
@@ -146,9 +146,12 @@ $(objpfx)mach-shortcuts.h: $(mach-interface-list:%=$(objpfx)mach/%.h) \
# The first line gets us one paragraph per line, with @s separating real lines.
# The second line selects paragraphs for the shortcutted functions.
# The third line removes `_rpc' from the names and reconstitutes the lines.
- cat $^ | tr \\012 @ | sed s/@@/@%/g | tr % \\012 \
- | grep '^/\* Routine [a-z0-9_]*_rpc \*/' \
- | sed 's/_rpc//g' | tr @ \\012 > $@-new
+ ( echo "#include <mach/mach_types.h>" ; \
+ echo "#include <mach/message.h>" ; \
+ echo ; \
+ cat $^ | tr \\012 @ | sed s/@@/@%/g | tr % \\012 \
+ | grep '^/\* Routine [a-z0-9_]*_rpc \*/' \
+ | sed 's/_rpc//g' | tr @ \\012 ) > $@-new
mv -f $@-new $@
generated += mach-shortcuts.h