summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-03-20 22:51:15 +0100
committerKevin Ryde <user42@zip.com.au>2002-03-20 22:51:15 +0100
commit07e54c1affe90d48eb712cc10ea7891edaa1e627 (patch)
tree3ddc04ddbc772fd7db91b0a1963ba570c50595db /demos
parent67ac222f1b895f0c92905f4c37305077b8515e1a (diff)
downloadgmp-07e54c1affe90d48eb712cc10ea7891edaa1e627.tar.gz
* demos/pexpr.c, demos/pexpr-config-h.in, configure.in: Use an
autoconf test for stack_t.
Diffstat (limited to 'demos')
-rw-r--r--demos/pexpr-config-h.in3
-rw-r--r--demos/pexpr.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/demos/pexpr-config-h.in b/demos/pexpr-config-h.in
index b3db0d15f..ec1e7ee24 100644
--- a/demos/pexpr-config-h.in
+++ b/demos/pexpr-config-h.in
@@ -41,3 +41,6 @@ Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Define if you have the `sigstack' function. */
#define HAVE_SIGSTACK @HAVE_SIGSTACK_01@
+
+/* Define if the system has the type `stack_t'. */
+#define HAVE_STACK_T @HAVE_STACK_T_01@
diff --git a/demos/pexpr.c b/demos/pexpr.c
index fc5269b62..4b2f20b4e 100644
--- a/demos/pexpr.c
+++ b/demos/pexpr.c
@@ -190,7 +190,8 @@ setup_error_handler (void)
overflown stack. */
#if HAVE_SIGALTSTACK
{
-#if _AIX
+ /* AIX uses stack_t, MacOS uses struct sigaltstack. */
+#if HAVE_STACK_T
stack_t s;
#else
struct sigaltstack s;