changeset 29817:f2832da6a04a

8076557: The specified procedure could not be found in management.dll Reviewed-by: tbell, ihse, sla
author erikj
date Wed, 08 Apr 2015 10:37:54 +0200
parents 43ad6bf3975b
children 7ca0a63012d2
files jdk/make/lib/Lib-java.management.gmk
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)