* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
authorPedro Alves <palves@redhat.com>
Thu, 26 Aug 2010 16:47:05 +0000 (16:47 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 26 Aug 2010 16:47:05 +0000 (16:47 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/mem-break.c

index 897bb2dafa9b26239738c9bfdb6fe9a1efa6547a..ddc6e98463fb159fb81140df07e3d8e5cd9aabba 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-26  Pedro Alves  <pedro@codesourcery.com>
+
+       * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
+
 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
 
        * gdbreplay.c (remote_error): New.
index 1b084154bb15ae3ab9a30d71dff6261544924764..687414b8dd77e4c65b1270315be9f899aa756da4 100644 (file)
@@ -20,6 +20,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "server.h"
+#if HAVE_MALLOC_H
+#include <malloc.h>
+#endif
 
 const unsigned char *breakpoint_data;
 int breakpoint_len;