mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
hurd: Add missing includes
* mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include <mach/mach_types.h> and <mach/message.h>.
This commit is contained in:
parent
e30c291a6d
commit
f4bff843cd
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user