From e5b85ead638e4916ee188698e434dd1940e484e4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 23 Feb 2015 14:03:48 +0000 Subject: [PATCH] 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 * gdb.base/info-os.c: Include stdlib.h. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/info-os.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8540979029b..276749ecf9a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-02-23 Pedro Alves + + * gdb.base/info-os.c: Include stdlib.h. + 2015-02-22 Doug Evans PR symtab/17855 diff --git a/gdb/testsuite/gdb.base/info-os.c b/gdb/testsuite/gdb.base/info-os.c index 8ceaaff4268..5f91eef1177 100644 --- a/gdb/testsuite/gdb.base/info-os.c +++ b/gdb/testsuite/gdb.base/info-os.c @@ -23,6 +23,7 @@ #include #include #include +#include static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; -- 2.30.2