diff --git a/inarpd-fix-gcc14.patch b/inarpd-fix-gcc14.patch new file mode 100644 index 0000000..0032b9e --- /dev/null +++ b/inarpd-fix-gcc14.patch @@ -0,0 +1,12 @@ +diff --git a/inarpd-0.17.c b/inarpd-0.17.c +index 7ce7edb..6c14b3c 100644 +--- a/inarpd-0.17.c ++++ b/inarpd-0.17.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #include + #define __const__ /* avoid compiler warnings related to __const__ returns */ + #include diff --git a/inarpd.changes b/inarpd.changes index 3947819..bd04f71 100644 --- a/inarpd.changes +++ b/inarpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Aug 25 17:20:59 UTC 2024 - Martin Hauke + +- Add patch: + * inarpd-fix-gcc14.patch + ------------------------------------------------------------------- Mon Dec 21 10:42:53 UTC 2020 - Martin Hauke diff --git a/inarpd.spec b/inarpd.spec index 3215892..795c77a 100644 --- a/inarpd.spec +++ b/inarpd.spec @@ -1,7 +1,8 @@ # # spec file for package inarpd # -# Copyright (c) 2020, Martin Hauke +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2020-2024, Martin Hauke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +29,7 @@ Source: https://kernel.org/pub/linux/utils/net/hdlc/%{name}-%{version}.c Source1: https://kernel.org/pub/linux/utils/net/hdlc/%{name}-%{version}.c.sign Source2: inarpd.8 Source99: %name.keyring +Patch0: inarpd-fix-gcc14.patch BuildRequires: gcc BuildRequires: gzip @@ -37,6 +39,7 @@ Inverse ARP (InARP) daemon for Linux. %prep %setup -q -c -T gunzip -c %{SOURCE0} > %{name}-%{version}.c +%patch -P0 -p1 %build gcc %{optflags} %{name}-%{version}.c -o %{name}