]> Git Repo - binutils.git/commitdiff
gdb.base/info-os.c: Include stdlib.h
authorPedro Alves <[email protected]>
Mon, 23 Feb 2015 14:03:48 +0000 (14:03 +0000)
committerPedro Alves <[email protected]>
Mon, 23 Feb 2015 14:03:48 +0000 (14:03 +0000)
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  <[email protected]>

* gdb.base/info-os.c: Include stdlib.h.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/info-os.c

index 8540979029b7bfa6938538015657399685e2c772..276749ecf9ac68a572df5c29cfd1a9d58177b5c5 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-23  Pedro Alves  <[email protected]>
+
+       * gdb.base/info-os.c: Include stdlib.h.
+
 2015-02-22  Doug Evans  <[email protected]>
 
        PR symtab/17855
index 8ceaaff42686c90bd55dc36dd15a31f81b0d816d..5f91eef1177205849ddde3691f421d0c781e927e 100644 (file)
@@ -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;
 
This page took 0.039639 seconds and 4 git commands to generate.