src/share/vm/utilities/globalDefinitions_sparcWorks.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7089790_full Cdiff src/share/vm/utilities/globalDefinitions_sparcWorks.hpp

src/share/vm/utilities/globalDefinitions_sparcWorks.hpp

Print this page
rev 2697 : imported patch formatfixes

*** 72,83 **** # include <setjmp.h> #endif # ifdef SOLARIS_MUTATOR_LIBTHREAD # include <sys/procfs.h> # endif #ifdef LINUX - # include <inttypes.h> # include <signal.h> # include <ucontext.h> # include <sys/time.h> #endif --- 72,100 ---- # include <setjmp.h> #endif # 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 <signal.h> # include <ucontext.h> # include <sys/time.h> #endif
src/share/vm/utilities/globalDefinitions_sparcWorks.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File