aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-11-03 15:48:17 +0000
committerTom Tromey <tromey@redhat.com>2011-11-03 15:48:17 +0000
commitc35599f82f183cb4b25c2ccbd154c5dbb9232209 (patch)
tree444f5f8a6af667575f3017cdf868baab38affa47
parentaad1c02c74957af402f8cd1af3916bb0fc37b74c (diff)
downloadgdb-c35599f82f183cb4b25c2ccbd154c5dbb9232209.zip
gdb-c35599f82f183cb4b25c2ccbd154c5dbb9232209.tar.gz
gdb-c35599f82f183cb4b25c2ccbd154c5dbb9232209.tar.bz2
2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
* events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
-rw-r--r--sim/ppc/ChangeLog4
-rw-r--r--sim/ppc/events.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 4b06ba9..1771d2f 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
+
+ * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
+
2011-10-17 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Change include to common/acinclude.m4.
diff --git a/sim/ppc/events.c b/sim/ppc/events.c
index ca23687..a2a1572 100644
--- a/sim/ppc/events.c
+++ b/sim/ppc/events.c
@@ -26,6 +26,7 @@
#include "events.h"
#include <signal.h>
+#include <stdlib.h>
#if !defined (SIM_EVENTS_POLL_RATE)
#define SIM_EVENTS_POLL_RATE 0x1000