fix build with new gcc (#2336031)

This commit is contained in:
Miroslav Lichvar 2025-01-07 10:59:44 +01:00
commit 0df415dad2
2 changed files with 14 additions and 0 deletions

12
adjtimex-decl.patch Normal file
View file

@ -0,0 +1,12 @@
diff -up adjtimex-1.29/adjtimex.c.decl adjtimex-1.29/adjtimex.c
--- adjtimex-1.29/adjtimex.c.decl 2025-01-07 10:50:34.218356076 +0100
+++ adjtimex-1.29/adjtimex.c 2025-01-07 10:50:42.286350666 +0100
@@ -185,7 +185,7 @@ static void cmos_read_time (time_t *cmos
static void busywait_uip_fall(struct timeval *timestamp);
static void busywait_second_change(struct tm *cmos, struct timeval *timestamp);
static void compare(void);
-static void failntpdate();
+static void failntpdate(char *s);
static void reset_time_status(void);
static struct cmos_adj *get_cmos_adjustment(void);
static void log_times(void);

View file

@ -5,6 +5,7 @@ Release: 31%{?dist}
License: GPL-2.0-or-later
Source: http://ftp.debian.org/debian/pool/main/a/adjtimex/%{name}_%{version}.orig.tar.gz
Patch1: adjtimex-manopts.patch
Patch2: adjtimex-decl.patch
BuildRequires: gcc
BuildRequires: make
@ -19,6 +20,7 @@ adjtimex to view kernel time variables.
%prep
%setup -q
%patch -P1 -p1 -b .manopts
%patch -P2 -p1 -b .decl
%build
%configure