diff --git a/jdk/src/share/instrument/JarFacade.c b/jdk/src/share/instrument/JarFacade.c index 07ae23c2220..6d7678f9a5d 100644 --- a/jdk/src/share/instrument/JarFacade.c +++ b/jdk/src/share/instrument/JarFacade.c @@ -33,6 +33,7 @@ #endif /* _WIN32 */ #include #include +#include #include "jni.h" #include "manifest_info.h" diff --git a/jdk/src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h b/jdk/src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h index 01aeb6fcaea..3188774cab7 100644 --- a/jdk/src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h +++ b/jdk/src/share/native/sun/security/pkcs11/wrapper/pkcs11wrapper.h @@ -55,6 +55,9 @@ * @author Martin Schlaeffer */ +#ifndef _PKCS11WRAPPER_H +#define _PKCS11WRAPPER_H 1 + /* disable asserts in product mode */ #ifndef DEBUG #ifndef NDEBUG @@ -461,3 +464,5 @@ void p11free(void *p, char *file, int line); #define free(c) (p11free((c), THIS_FILE, __LINE__)) #endif + +#endif /* _PKCS11WRAPPER_H */ diff --git a/jdk/src/solaris/native/sun/management/LinuxOperatingSystem.c b/jdk/src/solaris/native/sun/management/LinuxOperatingSystem.c index 1d6c89ed754..96d3fa30174 100644 --- a/jdk/src/solaris/native/sun/management/LinuxOperatingSystem.c +++ b/jdk/src/solaris/native/sun/management/LinuxOperatingSystem.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "sun_management_OperatingSystemImpl.h" struct ticks { @@ -57,7 +58,7 @@ static struct perfbuf { ticks *cpus; } counters; -#define DEC_64 "%lld" +#define DEC_64 "%"SCNd64 static void next_line(FILE *f) { while (fgetc(f) != '\n'); diff --git a/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c b/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c index 8b3a62bfdc6..e07bea75149 100644 --- a/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c +++ b/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c @@ -32,6 +32,7 @@ #include #include "j2secmod.h" +#include "wrapper/pkcs11wrapper.h" void *findFunction(JNIEnv *env, jlong jHandle, const char *functionName) { void *hModule = (void*)jlong_to_ptr(jHandle); diff --git a/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h b/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h index 9a112181a8a..49379f18dbf 100644 --- a/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h +++ b/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.h @@ -56,6 +56,9 @@ /* defines for UNIX platforms *************************************************/ +#ifndef _P11_MD_H +#define _P11_MD_H 1 + #define CK_PTR * #define CK_DEFINE_FUNCTION(returnType, name) returnType name #define CK_DECLARE_FUNCTION(returnType, name) returnType name @@ -83,3 +86,5 @@ struct ModuleData { }; typedef struct ModuleData ModuleData; + +#endif /* _P11_MD_H */