From patchwork Sat Mar 3 23:14:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 26176 Received: (qmail 58900 invoked by alias); 3 Mar 2018 23:14:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 58890 invoked by uid 89); 3 Mar 2018 23:14:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=14612, H*r:sk:static-, Hx-spam-relays-external:sk:static-, H*RU:sk:static- X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Add missing includes Date: Sun, 4 Mar 2018 00:14:47 +0100 Message-Id: <20180303231447.25748-1-samuel.thibault@ens-lyon.org> * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include and . --- ChangeLog | 2 ++ mach/Makefile | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c1d6dde45a..3d8aa9c17e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ * hurd/hurd/id.h: Include * hurd/hurd/ioctl.h: Include * hurd/hurd/lookup.h: Include + * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include + and . 2018-03-03 Andreas Schwab diff --git a/mach/Makefile b/mach/Makefile index dcf29a32b8..d16c44f885 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 " ; \ + echo "#include " ; \ + 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