aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-09-14 20:28:25 +0000
committerMichael Chastain <mec@google.com>2004-09-14 20:28:25 +0000
commit2222769610355498932c9439a30c23dd64310709 (patch)
tree6dac58ca379d26f73f2649b05a91806cc5e63db5
parent * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif. (diff)
downloadbinutils-gdb-2222769610355498932c9439a30c23dd64310709.tar.gz
binutils-gdb-2222769610355498932c9439a30c23dd64310709.tar.bz2
binutils-gdb-2222769610355498932c9439a30c23dd64310709.zip
2004-09-14 Michael Chastain <mec.gnu@mindspring.com>
* gdb.threads/killed.c: Include <stdlib.h>. * gdb.threads/pthreads.c: Likewise.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/killed.c3
-rw-r--r--gdb/testsuite/gdb.threads/pthreads.c3
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b7bb99146ee..aa6abb45d22 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2004-09-14 Michael Chastain <mec.gnu@mindspring.com>
+ * gdb.threads/killed.c: Include <stdlib.h>.
+ * gdb.threads/pthreads.c: Likewise.
+
+2004-09-14 Michael Chastain <mec.gnu@mindspring.com>
+
* gdb.threads/killed.c: Add copyright notice.
2004-09-10 Jason Molenda (jmolenda@apple.com)
diff --git a/gdb/testsuite/gdb.threads/killed.c b/gdb/testsuite/gdb.threads/killed.c
index a451f394164..590bf206f9b 100644
--- a/gdb/testsuite/gdb.threads/killed.c
+++ b/gdb/testsuite/gdb.threads/killed.c
@@ -1,6 +1,6 @@
/* This testcase is part of GDB, the GNU debugger.
- Copyright 2002 Free Software Foundation, Inc.
+ Copyright 2002, 2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,6 +21,7 @@
#include <signal.h>
#include <pthread.h>
#include <stdio.h>
+#include <stdlib.h>
int pid;
diff --git a/gdb/testsuite/gdb.threads/pthreads.c b/gdb/testsuite/gdb.threads/pthreads.c
index d82d550ffb4..abedb248b3e 100644
--- a/gdb/testsuite/gdb.threads/pthreads.c
+++ b/gdb/testsuite/gdb.threads/pthreads.c
@@ -1,5 +1,5 @@
/* Pthreads test program.
- Copyright 1996, 2002, 2003
+ Copyright 1996, 2002, 2003, 2004
Free Software Foundation, Inc.
Written by Fred Fish of Cygnus Support
@@ -23,6 +23,7 @@
Boston, MA 02111-1307, USA. */
#include <stdio.h>
+#include <stdlib.h>
#include <pthread.h>
/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create