Fix mixed code/decl's in gettext. ok jasper@ aja@ naddy@

This commit is contained in:
sthen 2013-02-15 23:47:04 +00:00
parent 217bf15d14
commit 106aa47da7
2 changed files with 17 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.61 2013/01/21 22:08:52 naddy Exp $
# $OpenBSD: Makefile,v 1.62 2013/02/15 23:47:04 sthen Exp $
COMMENT= GNU gettext
DISTNAME= gettext-0.18.2
REVISION= 0
SHARED_LIBS += intl 6.0 # .9.2
SHARED_LIBS += asprintf 1.0 # .0.0
SHARED_LIBS += gettextlib 3.1 # .0.0

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-gettext-tools_libgrep_regcomp_c,v 1.1 2013/02/15 23:47:04 sthen Exp $
--- gettext-tools/libgrep/regcomp.c.orig Fri Feb 15 21:56:32 2013
+++ gettext-tools/libgrep/regcomp.c Fri Feb 15 21:56:46 2013
@@ -952,10 +952,10 @@ static void
internal_function
init_word_char (re_dfa_t *dfa)
{
- dfa->word_ops_used = 1;
int i = 0;
int j;
int ch = 0;
+ dfa->word_ops_used = 1;
if (BE (dfa->map_notascii == 0, 1))
{
bitset_word_t bits0 = 0x00000000;