summaryrefslogtreecommitdiff
path: root/archivers/gtar-base/patches/patch-ah
blob: bbabf1ccd77739725b2d5c401b39432f6bbc6d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ah,v 1.3 2006/01/28 02:03:58 rillig Exp $

MIPSpro does not like non-constant initializers.

--- lib/argp-help.c.orig	2004-10-04 11:36:16.000000000 +0200
+++ lib/argp-help.c	2006-01-28 02:58:23.000000000 +0100
@@ -1055,7 +1055,13 @@ hol_entry_help (struct hol_entry *entry,
   int old_wm = __argp_fmtstream_wmargin (stream);
   /* PEST is a state block holding some of our variables that we'd like to
      share with helper functions.  */
-  struct pentry_state pest = { entry, stream, hhstate, 1, state };
+  struct pentry_state pest;
+
+  pest.entry = entry;
+  pest.stream = stream;
+  pest.hhstate = hhstate;
+  pest.first = 1;
+  pest.state = state;
 
   if (! odoc (real))
     for (opt = real, num = entry->num; num > 0; opt++, num--)