[packages/perl-Net-ARP] add missing include

atler atler at pld-linux.org
Sat Aug 2 01:04:06 CEST 2025


commit 83df5135b3e634a01554031650eecb81fb4d8ce2
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 2 01:03:39 2025 +0200

    add missing include

 includes.patch    | 10 ++++++++++
 perl-Net-ARP.spec |  2 ++
 2 files changed, 12 insertions(+)
---
diff --git a/perl-Net-ARP.spec b/perl-Net-ARP.spec
index ee7e7e4..258f508 100644
--- a/perl-Net-ARP.spec
+++ b/perl-Net-ARP.spec
@@ -14,6 +14,7 @@ License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tgz
 # Source0-md5:	1b71124347f23f951b96e86826af8562
+Patch0:		includes.patch
 URL:		http://search.cpan.org/dist/Net-ARP/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -32,6 +33,7 @@ uzyskiwania adresu MAC interfejsu sieciowego lub adresu IP.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..1265833
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,10 @@
+--- Net-ARP/arp_lookup_linux.c.orig	2009-05-24 17:38:59.000000000 +0200
++++ Net-ARP/arp_lookup_linux.c	2025-08-02 01:02:20.273846865 +0200
+@@ -27,6 +27,7 @@
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <net/if_arp.h>
++#include <unistd.h>
+ 
+ /*
+  * Search for a hardware address linked to an IP address on a device
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-ARP.git/commitdiff/83df5135b3e634a01554031650eecb81fb4d8ce2



More information about the pld-cvs-commit mailing list