zsh-workers
 help / color / mirror / Atom feed
* [PATCH] Include stdlib.h as necessary in configure checks
@ 2020-08-06 22:12 Saagar Jha
  0 siblings, 0 replies; only message in thread
From: Saagar Jha @ 2020-08-06 22:12 UTC (permalink / raw)
  To: zsh-workers; +Cc: Saagar Jha

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-06 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 22:12 [PATCH] Include stdlib.h as necessary in configure checks Saagar Jha

zsh-workers

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
		zsh-workers@zsh.org
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


code repositories for the project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git