7076215: (jli) jdk/src/share/bin/jli_util.h should include function prototypes for str functions
authoralanb
Mon, 08 Aug 2011 13:20:16 +0100
changeset 10146 40b4ec93b19f
parent 10145 fc182885d2ef
child 10147 cd5c99f94305
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
jdk/src/share/bin/jli_util.h
--- 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