diff --git a/zssh-c99.patch b/zssh-c99.patch new file mode 100644 index 0000000..a051ba3 --- /dev/null +++ b/zssh-c99.patch @@ -0,0 +1,22 @@ +Add missing entry for HAVE_PTY_H in config.h. Without it, the +generated config.h will not define HAVE_PTY_H, and is not +included in openpty.c. This leads to an implicit declaration of the +openpty function, causing a C99 compatibility problem. + +This should go away on its own if upstream ever does a new upstream +release, as config.h.in is usually generated by autoheader. + +diff --git a/config.h.in b/config.h.in +index 2d863e29d64848bf..c2e0cc979dc0fa56 100644 +--- a/config.h.in ++++ b/config.h.in +@@ -79,6 +79,9 @@ + /* Define if you have the header file. */ + #undef HAVE_PATHS_H + ++/* Define if you have the header file. */ ++#undef HAVE_PTY_H ++ + /* Define if you have the header file. */ + #undef HAVE_READLINE_HISTORY_H + diff --git a/zssh.spec b/zssh.spec index fa9027f..734d488 100644 --- a/zssh.spec +++ b/zssh.spec @@ -1,6 +1,6 @@ Name: zssh Version: 1.5c -Release: 12%{?dist} +Release: 13%{?dist} Summary: SSH and Telnet client with ZMODEM file transfer capability License: GPLv3 URL: http://zssh.sourceforge.net/ @@ -14,6 +14,7 @@ Patch4: https://sources.debian.org/data/main/z/zssh/1.5c.debian.1-7/debi Patch5: https://sources.debian.org/data/main/z/zssh/1.5c.debian.1-7/debian/patches/0006-replace-CPPFunction-call-with-rl_completion_func_t.patch Patch6: https://sources.debian.org/data/main/z/zssh/1.5c.debian.1-7/debian/patches/0007-Fix-typo-in-man-page-zssh.1.patch Patch7: https://sources.debian.org/data/main/z/zssh/1.5c.debian.1-7/debian/patches/0008-Strip-build-date-from-version-string-to-enable-repro.patch +Patch8: zssh-c99.patch BuildRequires: make BuildRequires: gcc BuildRequires: readline-devel @@ -46,6 +47,9 @@ rm %{buildroot}%{_mandir}/man1/ztelnet.1* %{_mandir}/man1/%{name}.1.* %changelog +* Sat Dec 17 2022 Florian Weimer - 1.5c-13 +- Improve C99 compatibility + * Sat Jul 23 2022 Fedora Release Engineering - 1.5c-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild