]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Avoid using ino64_t and loff_t in headers
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 4 Mar 2018 01:11:46 +0000 (02:11 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 4 Mar 2018 01:13:56 +0000 (02:13 +0100)
* mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
Process mig output through $(migheaderpipe).
* hurd/Makefile (migheaderpipe): Define variable.

ChangeLog
hurd/Makefile
mach/Machrules

index 70b08c900d87b923a2feed0f3266d3bc2b2ad6bc..819a8db2cd4542dd7b76e73ea7e7200e144d92c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,9 @@
        * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
        trivial, for C++ conformity.
        * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
+       * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
+       Process mig output through $(migheadersed).
+       * hurd/Makefile (migheadersed): Define variable.
 
 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
 
index f71dc36043e2ac1e976cfa16aae2694e4620fb97..cca08a175a44f2eff622db75959bec14ecee63d9 100644 (file)
@@ -86,6 +86,8 @@ generated += $(inlines:=.c)
 CFLAGS-hurdstartup.o = $(no-stack-protector)
 CFLAGS-RPC_exec_startup_get_info.o = $(no-stack-protector)
 \f
+# Make generated headers compatible with all support standards
+migheaderpipe := | sed -e 's/\<ino64_t\>/__ino64_t/' -e 's/\<loff_t\>/__loff_t/'
 include ../mach/Machrules
 include ../Rules
 \f
index 4f9ec421ec2c3b111c11beb9a53ba08a290f4691..65411f493a6d15cf1c6e5a009eefb44a2a3be632 100644 (file)
@@ -29,6 +29,7 @@
 # _S_rpcname.
 
 # Includers can also add to or modify `migdefines' to set MiG flags.
+# They can also set `migheaderpipe' to mangle the MiG header output.
 
 all:
 
@@ -176,7 +177,7 @@ $(patsubst %,$(objpfx)%.h,$(user-interfaces)): $(objpfx)%.h: $(objpfx)%.__h \
                                                             $(objpfx)%.uh
 # The last line of foo.__h is "#endif _foo_user_".
 # The first two lines of foo.uh are "#ifndef _foo_user_"/"#define _foo_user_".
-       (sed -e '$$d' $<; sed -e '1,2d' $(word 2,$^)) > $@-new
+       (sed -e '$$d' $<; sed -e '1,2d' $(word 2,$^)) $(migheaderpipe) > $@-new
        mv -f $@-new $@
 
 interface-routines := $(foreach if,$(user-interfaces),                 \