[packages/perl-Net-Interface] fix function argument list

atler atler at pld-linux.org
Mon Aug 17 22:25:25 CEST 2026


commit 22e2b1b565124a41004776d6c3e43a944065b6a2
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 17 20:57:18 2026 +0200

    fix function argument list

 perl-Net-Interface.spec |  2 ++
 types.patch             | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/perl-Net-Interface.spec b/perl-Net-Interface.spec
index 72cb443..e0c453c 100644
--- a/perl-Net-Interface.spec
+++ b/perl-Net-Interface.spec
@@ -16,6 +16,7 @@ Source0:	http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.ta
 # Source0-md5:	339079deafeb8720c569bae51dac4a0d
 Patch0:		no-dot-in-inc.patch
 Patch1:		%{name}-iface.patch
+Patch2:		types.patch
 URL:		http://search.cpan.org/dist/Net-Interface/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	perl-perldoc
@@ -39,6 +40,7 @@ operacyjny na to pozwala).
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..f83b662
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- Net-Interface-1.016/ni_linuxproc.c.orig	2009-03-09 09:43:34.000000000 +0100
++++ Net-Interface-1.016/ni_linuxproc.c	2026-08-17 20:47:23.522015320 +0200
+@@ -348,7 +348,7 @@
+     return 0;
+ }
+ 
+-static void * returnull() { return NULL; }
++static void * returnull(int fd, void* ifc) { return NULL; }
+ 
+ static struct ni_ifconf_flavor ni_flavor_linuxproc = {
+     .ni_type		= NI_LINUXPROC,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-Interface.git/commitdiff/4a03c09f867f42427ed449fd154238bec43468ea



More information about the pld-cvs-commit mailing list