diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-06-28 16:06:02 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-06-28 16:06:02 +0000 |
commit | 3aa48797ecc40f0b9fa07da4685595b9a5bcf07a (patch) | |
tree | 6071aaa9824ade430d70cba71650efb16e77a591 /gdb/testsuite/gdb.base/signals.c | |
parent | 4683ebe4e2ebe3d956e90b55271a01fc6ce735cf (diff) | |
download | gdb-3aa48797ecc40f0b9fa07da4685595b9a5bcf07a.tar.gz |
import gdb-1999-06-28 snapshot
Diffstat (limited to 'gdb/testsuite/gdb.base/signals.c')
-rw-r--r-- | gdb/testsuite/gdb.base/signals.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c index 280e6e7c5d8..f1ebcfccb3d 100644 --- a/gdb/testsuite/gdb.base/signals.c +++ b/gdb/testsuite/gdb.base/signals.c @@ -1,6 +1,7 @@ /* Test GDB dealing with stuff like stepping into sigtramp. */ #include <signal.h> +#include <unistd.h> #ifdef __sh__ #define signal(a,b) /* Signals not supported on this target - make them go away */ @@ -9,9 +10,14 @@ static int count = 0; +#ifdef PROTOTYPES +static void +handler (int sig) +#else static void handler (sig) int sig; +#endif { signal (sig, handler); ++count; |