-
Notifications
You must be signed in to change notification settings - Fork 372
Add a check for term.h #1290
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
Add a check for term.h #1290
Conversation
thanks for the contribution! small nit pick, could you indent the snippet in the configure.ac so it is visually within the |
If term.h is present, use that instead of defining prototypes for the terminfo functions in terminfo-core.c. This causes problems on certain platforms (e.g. Apple aarch64) due to the functions being prototyped as non-variadic but called as variadic. If term.h isn't found, it falls back to the old behaviour. Fixes irssi#1238.
e5f56a7
to
0b82f14
Compare
Sure thing! Done. |
I tested it on Solaris, works as expected |
@irssi/developers |
Add a check for term.h (cherry picked from commit a731525)
Just to double-check: this landed in 1.2.3, right? I wasn't sure because the tag doesn't show up in the merged commit. This would be good to know before merging Homebrew/homebrew-core#75094, which removes patches backported from this PR. Thanks! |
Yes, I see this in 1.2.3's source: https://github.com/irssi/irssi/blob/1.2.3/configure.ac#L372-L374 Looks like it made it into the generated |
Saw that too; just wanted to make sure I wasn't missing anything. Thanks, @mistydemeo. |
If
term.h
is present, use that instead of defining prototypes for the terminfo functions interminfo-core.c
. This causes problems on certain platforms (e.g. Apple aarch64) due to the functions being prototyped as non-variadic but called as variadic. Ifterm.h
isn't found, it falls back to the old behaviour.This fixes #1238; I was able to test on my Apple ARM Mac and it builds/works as expected using the system curses. I wasn't able to test the meson build since it's failing for me for unrelated reasons, but I think my fix should fix that as well.