Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acinclude.m4: Use return instead of exit #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
acinclude.m4: Use return instead of exit
On macOS with the clang compiler from Xcode 12 or later, the configure
script gets the wrong answer when checking if signal handlers must be
reinstalled when invoked because the test uses exit without including
stdlib.h where it's defined. Clang in Xcode 12 and later considers
implicit declaration of function to be an error. Fix it by using return
instead of exit.
  • Loading branch information
ryandesign authored Sep 20, 2022
commit 572d3d95d863687eb68db71cdf78107b2deee9f5
2 changes: 1 addition & 1 deletion pure/acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ main()
set_signal_handler(SIGINT, sigint);
kill((int)getpid(), SIGINT);
kill((int)getpid(), SIGINT);
exit(nsigint != 2);
return (nsigint != 2);
}
], q_cv_must_reinstall_sighandlers=no, q_cv_must_reinstall_sighandlers=yes,
if test "$q_cv_signal_vintage" = svr3; then
Expand Down