Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: RDBrown@mira.net
To: gdb-patches@sources.redhat.com
Subject: expect/configure.in patch for NSIG
Date: Tue, 24 Apr 2001 04:51:00 -0000	[thread overview]
Message-ID: <E14s0w2-00005T-00@urtur> (raw)

expect/ChangeLog entry
2001-04-24  Rodney Brown  <RDBrown@mira.net>

	* configure.in: Only define _XOPEN_SOURCE if NSIG remains defined.

--- expect/configure.in.orig	Thu Jun 22 12:21:48 2000
+++ expect/configure.in	Tue Apr 24 11:07:55 2001
@@ -854,7 +854,19 @@
   # On some systems (e.g., IA-64 Linux), we need to define _XOPEN_SOURCE
   # in order to get a declaration for ptsname.  It is safe to simply
   # define that whenever we are using ptsname.
-  AC_DEFINE(_XOPEN_SOURCE)
+  AC_MSG_CHECKING([for NSIG definition with _XOPEN_SOURCE])
+  AC_TRY_COMPILE([
+/* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
+#define _XOPEN_SOURCE
+#include <signal.h>
+char junk[NSIG];],
+    [],
+	AC_DEFINE(_XOPEN_SOURCE)
+	AC_MSG_RESULT(yes)
+    ,
+	AC_MSG_RESULT(no)
+    ,
+  )
   # END CYGNUS LOCAL
 else
   AC_MSG_RESULT(no)


             reply	other threads:[~2001-04-24  4:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-24  4:51 RDBrown [this message]
2001-05-11 20:55 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E14s0w2-00005T-00@urtur \
    --to=rdbrown@mira.net \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox