jdk/make/lib/Lib-java.management.gmk
changeset 29817 f2832da6a04a
parent 27799 097b1d6f6894
child 29931 64e274ed6567
--- a/jdk/make/lib/Lib-java.management.gmk	Tue Apr 07 10:33:08 2015 +0100
+++ b/jdk/make/lib/Lib-java.management.gmk	Wed Apr 08 10:37:54 2015 +0200
@@ -38,6 +38,11 @@
     $(LIBJAVA_HEADER_FLAGS) \
     #
 
+# In (at least) VS2013 and later, -DPSAPI_VERSION=1 is needed to generate
+# a binary that is compatible with windows versions older than 7/2008R2.
+# See MSDN documentation for GetProcessMemoryInfo for more information.
+BUILD_LIBMANAGEMENT_CFLAGS += -DPSAPI_VERSION=1
+
 BUILD_LIBMANAGEMENT_EXCLUDES :=
 
 ifneq ($(OPENJDK_TARGET_OS), solaris)