8129511: PlatformMidi.c:83 uses malloc without malloc header
authorserb
Fri, 10 Jul 2015 16:15:21 +0300
changeset 31885 6a51d0e0c491
parent 31884 15ece91df8e9
child 31886 5787a1b5682a
8129511: PlatformMidi.c:83 uses malloc without malloc header Reviewed-by: ant, azvegint
jdk/src/java.desktop/share/native/libjsound/PlatformMidi.c
--- a/jdk/src/java.desktop/share/native/libjsound/PlatformMidi.c	Fri Jul 10 21:19:41 2015 +0300
+++ b/jdk/src/java.desktop/share/native/libjsound/PlatformMidi.c	Fri Jul 10 16:15:21 2015 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -29,6 +29,8 @@
 
 #include "PlatformMidi.h"
 
+#include <stdlib.h>
+
 char* GetInternalErrorStr(INT32 err) {
     switch (err) {
     case MIDI_SUCCESS:          return "";