2 Commits

3 changed files with 30 additions and 1 deletions

22
fix-build-gcc15.patch Normal file
View File

@@ -0,0 +1,22 @@
Index: b/src/sg.h.in
===================================================================
--- a/src/sg.h.in
+++ b/src/sg.h.in
@@ -360,7 +360,7 @@ char *sgStripUrl __P((char *));
void sgEmergency __P(());
void sgReloadConfig __P(());
void sgHandlerSigHUP __P((int));
-void sgAlarm __P(());
+void sgAlarm __P((int));
int sgStrRcmp __P((char *, char *));
int sgStrRncmp __P((char *, char *, int));
int sgDomStrRncmp __P((char *, char *, int));
@@ -431,7 +431,7 @@ void sgFreePatternBuffer __P((struct s
int sgRegExpMatch __P((struct sgRegExp *, char *));
char *sgRegExpSubst __P((struct sgRegExp *, char *));
-void sgDbInit __P(());
+void sgDbInit __P((struct sgDb *Db, char *file));
void sgDbLoadTextFile __P((struct sgDb *, char *, int));
void sgDbUpdate __P((struct sgDb *, char *, char *, size_t));

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 10 17:09:16 UTC 2025 - Antonio Teixeira <antonio.teixeira@suse.com>
- Fix builds with GCC 15
* fix-build-gcc15.patch
-------------------------------------------------------------------
Thu Nov 7 12:27:41 UTC 2024 - Adam Majer <adam.majer@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package squidGuard
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -39,6 +39,7 @@ Patch1: squidGuard-config.patch
Patch2: default_config_pathfixes.patch
Patch3: config_exit.patch
Patch4: types.patch
Patch5: fix-build-gcc15.patch
BuildRequires: bison
BuildRequires: db-devel
BuildRequires: flex