summaryrefslogtreecommitdiff
path: root/textproc/gsed/patches/patch-regcomp
blob: 402550b85a019629779efff3cd82ffe6d12f0608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-regcomp,v 1.2 2007/12/19 13:27:20 rillig Exp $

The [ from ... to ] designator is gcc-specific.

--- lib/regcomp.c.orig	2005-12-06 09:46:51.000000000 +0100
+++ lib/regcomp.c	2007-12-19 00:52:02.864945000 +0100
@@ -558,7 +558,17 @@ weak_alias (__regerror, regerror)
 static const bitset_t utf8_sb_map =
 {
   /* Set the first 128 bits.  */
-  [0 ... 0x80 / BITSET_WORD_BITS - 1] = BITSET_WORD_MAX
+#if BITSET_WORD_MAX == 0xffffffffULL
+  [0] = BITSET_WORD_MAX,
+  [1] = BITSET_WORD_MAX,
+  [2] = BITSET_WORD_MAX,
+  [3] = BITSET_WORD_MAX
+#elif BITSET_WORD_MAX == 0xffffffffffffffffULL
+  [0] = BITSET_WORD_MAX,
+  [1] = BITSET_WORD_MAX
+#else
+#error "Unknown value for BITSET_WORD_MAX"
+#endif
 };
 #endif