Fix building in C99 mode

This commit is contained in:
Florian Weimer 2019-09-09 12:17:08 +02:00
commit 07daa46331
2 changed files with 22 additions and 2 deletions

16
ytalk-c99.patch Normal file
View file

@ -0,0 +1,16 @@
configure was generated by a version of autoconf which is incompatible
with C99 compilers. It cannot be regenerated with current autoconf
versions, so only the generated script is patched.
diff --git a/configure b/configure
index ee6271691bf7d629..96b9f2b4468bbbc1 100755
--- a/configure
+++ b/configure
@@ -3359,6 +3359,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ctype.h>
+#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))

View file

@ -1,11 +1,12 @@
Summary: A chat program for multiple users
Name: ytalk
Version: 3.3.0
Release: 33%{?dist}
Release: 34%{?dist}
License: GPLv2+
URL: http://www.impul.se/ytalk/
Source: http://www.impul.se/ytalk/%{name}-%{version}.tar.bz2
Source1: ytalkrc
Patch1: ytalk-c99.patch
BuildRequires: gcc
BuildRequires: ncurses-devel
@ -17,7 +18,7 @@ the same talk daemon(s), but YTalk allows for multiple connections
to other users as well as an easy-to-use menu of commands.
%prep
%setup -q
%autosetup
%build
%configure
@ -33,6 +34,9 @@ make install DESTDIR=%{buildroot}
%config(noreplace) /etc/ytalkrc
%changelog
* Mon Sep 9 2019 Florian Weimer <fweimer@redhat.com> - 3.3.0-34
- Fix building in C99 mode
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild