7076215: (jli) jdk/src/share/bin/jli_util.h should include function prototypes for str functions
Reviewed-by: alanb
Contributed-by: neil.richards@ngmr.net
--- a/jdk/src/share/bin/jli_util.h Sun Aug 07 17:03:46 2011 -0700
+++ b/jdk/src/share/bin/jli_util.h Mon Aug 08 13:20:16 2011 +0100
@@ -27,6 +27,8 @@
#define _JLI_UTIL_H
#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
#include <jni.h>
void *JLI_MemAlloc(size_t size);
@@ -58,6 +60,7 @@
#define JLI_Snprintf _snprintf
#else
#include <unistd.h>
+#include <strings.h>
#define JLI_StrCaseCmp(p1, p2) strcasecmp((p1), (p2))
#define JLI_StrNCaseCmp(p1, p2, p3) strncasecmp((p1), (p2), (p3))
#define JLI_Snprintf snprintf