hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp
changeset 10565 dc90c239f4ec
parent 8921 14bfe81f2a9d
child 25918 79e4c4d9f5c9
--- a/hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp	Tue Sep 20 23:50:16 2011 -0700
+++ b/hotspot/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp	Sun Sep 25 16:03:29 2011 -0700
@@ -74,8 +74,25 @@
 # ifdef SOLARIS_MUTATOR_LIBTHREAD
 # include <sys/procfs.h>
 # endif
+
+#include <inttypes.h>
+
+// Solaris 8 doesn't provide definitions of these
+#ifdef SOLARIS
+#ifndef PRIdPTR
+#if defined(_LP64)
+#define PRIdPTR                 "ld"
+#define PRIuPTR                 "lu"
+#define PRIxPTR                 "lx"
+#else
+#define PRIdPTR                 "d"
+#define PRIuPTR                 "u"
+#define PRIxPTR                 "x"
+#endif
+#endif
+#endif
+
 #ifdef LINUX
-# include <inttypes.h>
 # include <signal.h>
 # include <ucontext.h>
 # include <sys/time.h>