Add patch to build against gcc-10

epel8
Mukundan Ragavan 5 years ago
parent d95773fc05
commit ef2f8727c4

@ -0,0 +1,27 @@
--- CRT.h.orig 2020-02-04 17:18:44.505493387 -0500
+++ CRT.h 2020-02-04 17:19:33.112820135 -0500
@@ -140,7 +140,7 @@
extern int CRT_delay;
-int* CRT_colors;
+extern int* CRT_colors;
extern int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT];
@@ -150,13 +150,13 @@
extern int CRT_scrollWheelVAmount;
-char* CRT_termType;
+extern char* CRT_termType;
// TODO move color scheme to Settings, perhaps?
extern int CRT_colorScheme;
-void *backtraceArray[128];
+extern void *backtraceArray[128];
#if HAVE_SETUID_ENABLED

@ -1,10 +1,11 @@
Name: htop
Version: 2.2.0
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Interactive process viewer
License: GPLv2+
URL: http://hisham.hm/htop/
Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-gcc10.patch
BuildRequires: desktop-file-utils
BuildRequires: ncurses-devel
@ -56,6 +57,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/htop.1*
%changelog
* Tue Feb 04 2020 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.2.0-8
- Add patch to build against gcc-10
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

Loading…
Cancel
Save