summaryrefslogtreecommitdiff
path: root/lib/formats.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-01-17 23:58:09 +0000
committerjbj <devnull@localhost>2005-01-17 23:58:09 +0000
commit217c588baacf213a4570ee13e27477683baa3e88 (patch)
tree693227cc46d5576aa50746e5a195d5cea0373537 /lib/formats.c
parentcd3d87df20647dc49e9091115a4e78922387ceb0 (diff)
downloadrpm-217c588baacf213a4570ee13e27477683baa3e88.tar.gz
rpm-217c588baacf213a4570ee13e27477683baa3e88.tar.bz2
rpm-217c588baacf213a4570ee13e27477683baa3e88.zip
Build on macosx.
CVS patchset: 7701 CVS date: 2005/01/17 23:58:09
Diffstat (limited to 'lib/formats.c')
-rw-r--r--lib/formats.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/formats.c b/lib/formats.c
index dd0272209..e7e03e1ce 100644
--- a/lib/formats.c
+++ b/lib/formats.c
@@ -980,10 +980,12 @@ static int filerequireTag(Header h, /*@out@*/ rpmTagType * type,
/* I18N look aside diversions */
+#if defined(ENABLE_NLS)
/*@-exportlocal -exportheadervar@*/
/*@unchecked@*/
-int _nl_msg_cat_cntr; /* XXX GNU gettext voodoo */
+extern int _nl_msg_cat_cntr; /* XXX GNU gettext voodoo */
/*@=exportlocal =exportheadervar@*/
+#endif
/*@observer@*/ /*@unchecked@*/
static const char * language = "LANGUAGE";
@@ -1035,7 +1037,9 @@ static int i18nTag(Header h, int_32 tag, /*@out@*/ rpmTagType * type,
/* change to en_US for msgkey -> msgid resolution */
langval = getenv(language);
(void) setenv(language, "en_US", 1);
+#if defined(ENABLE_NLS)
/*@i@*/ ++_nl_msg_cat_cntr;
+#endif
msgid = NULL;
/*@-branchstate@*/