--- openjdk/jdk/src/share/native/common/jni_util.c
+++ openjdk/jdk/src/share/native/common/jni_util.c
@@ -29,6 +29,8 @@
 #include "jvm.h"
 #include "jni.h"
 #include "jni_util.h"
+
+extern size_t getLastErrorString(char *buf, size_t len);
 
 /* Due to a bug in the win32 C runtime library strings
  * such as "z:" need to be appended with a "." so we
