aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-02-23 14:03:48 +0000
committerPedro Alves <palves@redhat.com>2015-02-23 14:03:48 +0000
commite5b85ead638e4916ee188698e434dd1940e484e4 (patch)
tree4966345cb510e39177b30d19627940ce7f12bacd /gdb
parentcb967f0d6ce36d566d97cf37b298265434fb6db5 (diff)
downloadgdb-e5b85ead638e4916ee188698e434dd1940e484e4.zip
gdb-e5b85ead638e4916ee188698e434dd1940e484e4.tar.gz
gdb-e5b85ead638e4916ee188698e434dd1940e484e4.tar.bz2
gdb.base/info-os.c: Include stdlib.h
Fixes: > gdb compile failed, /gdb/testsuite/gdb.base/info-os.c: In function 'main': > /gdb/testsuite/gdb.base/info-os.c:65:3: warning: implicit declaration of function 'atexit' [-Wimplicit-function-declaration] > atexit (ipc_cleanup); > ^ > FAIL: gdb.base/info-os.exp: cannot compile test program with recent GCCs. gdb/testsuite/ChangeLog: 2015-02-23 Pedro Alves <palves@redhat.com> * gdb.base/info-os.c: Include stdlib.h.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/info-os.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8540979..276749e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-23 Pedro Alves <palves@redhat.com>
+
+ * gdb.base/info-os.c: Include stdlib.h.
+
2015-02-22 Doug Evans <xdje42@gmail.com>
PR symtab/17855
diff --git a/gdb/testsuite/gdb.base/info-os.c b/gdb/testsuite/gdb.base/info-os.c
index 8ceaaff..5f91eef 100644
--- a/gdb/testsuite/gdb.base/info-os.c
+++ b/gdb/testsuite/gdb.base/info-os.c
@@ -23,6 +23,7 @@
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
+#include <stdlib.h>
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;