]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Add missing includes
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 3 Mar 2018 23:13:47 +0000 (00:13 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 3 Mar 2018 23:14:12 +0000 (00:14 +0100)
* mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
<mach/mach_types.h> and <mach/message.h>.

ChangeLog
mach/Makefile

index c1d6dde45a78196ede29edb9d7eb2c5a25fbfde3..3d8aa9c17ea132ec2a4b3b98207173c590f62580 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
        * hurd/hurd/id.h: Include <hurd/hurd_types.h>
        * hurd/hurd/ioctl.h: Include <mach/port.h>
        * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
+       * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
+       <mach/mach_types.h> and <mach/message.h>.
 
 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
 
index dcf29a32b872f5ad2f7a182d146a2f97d1ebc583..d16c44f885962eee860398b2689c0c542a285654 100644 (file)
@@ -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