zsh-workers
 help / color / mirror / code / Atom feed
From: Saagar Jha <saagar@saagarjha.com>
To: zsh-workers@zsh.org
Cc: Saagar Jha <saagar@saagarjha.com>
Subject: [PATCH] Include stdlib.h as necessary in configure checks
Date: Thu,  6 Aug 2020 15:12:36 -0700	[thread overview]
Message-ID: <20200806221236.33027-1-saagar@saagarjha.com> (raw)

exit(3) needs it, and without it the checks fail on macOS. This causes
zsh to hang because it thinks those things are broken and tries to
employ unnecessary (and in this case incorrect) workarounds.
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 995f010b9..906c174ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2264,6 +2264,7 @@ zsh_cv_sys_killesrch,
 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <unistd.h>
 #include <signal.h>
+#include <stdlib.h>
 #include <errno.h>
 main()
 {
@@ -2289,6 +2290,7 @@ if test x$signals_style = xPOSIX_SIGNALS; then
     zsh_cv_sys_sigsuspend,
     [AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <signal.h>
+#include <stdlib.h>
 #include <unistd.h>
 int child=0;
 void handler(sig)
-- 
2.28.0



                 reply	other threads:[~2020-08-06 23:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20200806221236.33027-1-saagar@saagarjha.com \
    --to=saagar@saagarjha.com \
    --cc=zsh-workers@zsh.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).