$OpenBSD: patch-libjava_java_lang_natRuntime_cc,v 1.2 2008/07/25 20:50:26 martynas Exp $
--- libjava/java/lang/natRuntime.cc.orig	Fri Apr 25 19:02:23 2003
+++ libjava/java/lang/natRuntime.cc	Fri Jul 25 12:34:59 2008
@@ -341,7 +341,7 @@ java::lang::Runtime::traceMethodCalls (jboolean)
 }
 
 #if ! defined (DEFAULT_FILE_ENCODING) && defined (HAVE_ICONV) \
-    && defined (HAVE_NL_LANGINFO)
+    && defined (HAVE_LANGINFO_CODESET)
 
 static char *
 file_encoding ()
