diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-23 14:03:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-23 14:03:48 +0000 |
commit | e5b85ead638e4916ee188698e434dd1940e484e4 (patch) | |
tree | 4966345cb510e39177b30d19627940ce7f12bacd /gdb | |
parent | cb967f0d6ce36d566d97cf37b298265434fb6db5 (diff) | |
download | gdb-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/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/info-os.c | 1 |
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; |