$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.2 2004/12/27 21:21:39 wilfried Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig	Tue Nov  9 21:46:03 2004
+++ xpcom/io/nsNativeCharsetUtils.cpp	Fri Dec  3 11:21:11 2004
@@ -329,7 +329,11 @@ nsNativeCharsetConverter::LazyInit()
 {
     const char  *blank_list[] = { "", NULL };
     const char **native_charset_list = blank_list;
+#ifdef CODESET
     const char  *native_charset = nl_langinfo(CODESET);
+#else
+    const char  *native_charset = nsnull;
+#endif
     if (native_charset == nsnull) {
         NS_ERROR("native charset is unknown");
         // fallback to ISO-8859-1
