--- a/hotspot/make/aix/makefiles/xlc.make Wed Jul 05 20:16:23 2017 +0200
+++ b/hotspot/make/aix/makefiles/xlc.make Tue Jan 13 16:09:52 2015 +0100
@@ -74,6 +74,12 @@
# no xlc counterpart for -fcheck-new
# CFLAGS += -fcheck-new
+# We need to define this on the command line if we want to use the the
+# predefined format specifiers from "inttypes.h". Otherwise system headrs
+# can indirectly include inttypes.h before we define __STDC_FORMAT_MACROS
+# in globalDefinitions.hpp
+CFLAGS += -D__STDC_FORMAT_MACROS
+
ARCHFLAG = -q64
CFLAGS += $(ARCHFLAG)