Add an explicit check for CODESET to fix OpenBSD bustage. r=bstell@netscape.com

git-svn-id: svn://10.0.0.236/trunk@92181 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org
2001-04-13 06:41:17 +00:00
parent 3226cc992f
commit abd962daa7

View File

@@ -232,7 +232,7 @@ nsUNIXCharset::InitGetCharset(nsString &oString)
nsString aCharset;
nsresult res;
#if HAVE_NL_LANGINFO
#if HAVE_NL_LANGINFO && defined(CODESET)
nl_langinfo_codeset = nl_langinfo(CODESET);
NS_ASSERTION(nl_langinfo_codeset, "cannot get nl_langinfo(CODESET)");