$NetBSD: patch-bc,v 1.2 2011/08/21 22:57:55 tnn Exp $

--- hotspot/src/share/vm/utilities/globalDefinitions.hpp.orig	2011-08-18 19:00:26.000000000 +0000
+++ hotspot/src/share/vm/utilities/globalDefinitions.hpp
@@ -25,7 +25,9 @@
 #ifndef SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP
 #define SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP
 
+#ifndef __STDC_FORMAT_MACROS
 #define __STDC_FORMAT_MACROS
+#endif
 
 #ifdef TARGET_COMPILER_gcc
 # include "utilities/globalDefinitions_gcc.hpp"
