This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix testsuite/gdb.base/sigaltstack.c on HP-UX 11.00


HP-UX doesn't have `struct sigaltstack'.  Since X/Open specifies the
type to be `stack_t' and Solaris, Linux and OpenBSD have:

typedef struct sigaltstack stack_t;

The obvious thing to do is use `stack_t'.

Committed,

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* gdb.base/sigaltstack.c (main): Use stack_t instead of `struct
	sigaltsatck'.

Index: gdb.base/sigaltstack.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigaltstack.c,v
retrieving revision 1.2
diff -u -p -r1.2 sigaltstack.c
--- gdb.base/sigaltstack.c 5 Aug 2004 07:28:20 -0000 1.2
+++ gdb.base/sigaltstack.c 18 Jul 2005 08:10:56 -0000
@@ -81,7 +81,7 @@ main ()
   /* Set up the altstack.  */
   {
     static char stack[SIGSTKSZ * NR_LEVELS];
-    struct sigaltstack alt;
+    stack_t alt;
     memset (&alt, 0, sizeof (alt));
     alt.ss_sp = stack;
     alt.ss_size = SIGSTKSZ;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]