This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Revise select for hpux_htonl include fix
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 7 Sep 2010 10:55:09 -0400 (EDT)
- Subject: [committed] Revise select for hpux_htonl include fix
Some older HP-UX versions have trailing whitespace on the hpux_htonl
select line. This patch revises the select regexp to match lines with
trailing whitespace.
Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Committed
to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2010-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* inclhack.def (hpux_htonl): Allow trailing whitespace in select.
* fixincl.x: Regenerate.
Index: inclhack.def
===================================================================
--- inclhack.def (revision 163936)
+++ inclhack.def (working copy)
@@ -1985,7 +1985,7 @@
fix = {
hackname = hpux_htonl;
files = netinet/in.h;
- select = "#ifndef _XOPEN_SOURCE_EXTENDED\n"
+ select = "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n"
"(/\\*\n"
" \\* Macros for number representation conversion\\.\n"
" \\*/\n"