Dominique Leuenberger 2024-08-30 12:57:14 +00:00 committed by Git OBS Bridge
commit 24c65bbc34
3 changed files with 22 additions and 1 deletions

12
inarpd-fix-gcc14.patch Normal file
View File

@ -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 <asm/types.h>
#include <sys/ioctl.h>
#include <sys/types.h>
+#include <arpa/inet.h>
#include <sys/socket.h>
#define __const__ /* avoid compiler warnings related to __const__ returns */
#include <linux/in.h>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 25 17:20:59 UTC 2024 - Martin Hauke <mardnh@gmx.de>
- Add patch:
* inarpd-fix-gcc14.patch
-------------------------------------------------------------------
Mon Dec 21 10:42:53 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@ -1,7 +1,8 @@
#
# spec file for package inarpd
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2020-2024, Martin Hauke <mardnh@gmx.de>
#
# 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}