Patchwork [committed] Revise select for hpux_htonl include fix

login
register
mail settings
Submitter John David Anglin
Date Sept. 7, 2010, 2:55 p.m.
Message ID <20100907145510.4E2DD4CEC@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/64028/
State New
Headers show

Comments

John David Anglin - Sept. 7, 2010, 2:55 p.m.
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

Patch

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"