From: | dam [...] cpan.org |
Subject: | [PATCH] missing #include's on BSD |
In Debian we are currently applying the following patch to Net-ARP.
We thought you might be interested in it too.
Description: missing #include's on BSD
net/if_arp.h uses uint64_t but does not include stdint.h itself, probably to
avoid header pollution. The patch adds the missing include, replacing
<sys/types.h>. Without it we aren't able to build the package of kfreebsd
(that's Debian fith FreeBSD kernel) because of:
/usr/include/net/if_arp.h:130:2: error: unknown type name 'uint64_t'
A full log of the build failure is available at
https://buildd.debian.org/status/fetch.php?pkg=libnet-arp-perl&arch=kfreebsd-amd64&ver=1.0.8-1%2Bb2&stamp=1408110383
<stdio.h> is added because of the usage of sprintf()
<string.h> is added because of the usage of strncpy()/malloc()/free()/strlen()
<stdlib.h> is added because of the usage of exit()
Without these gcc complains about incompatible implicit declaration of the
built-in functions.
Author: Damyan Ivanov <dmn@debian.org>
Bug-Debian: https://bugs.debian.org/758283
The patch is tracked in our Git repository at
https://anonscm.debian.org/cgit/pkg-perl/packages/libnet-arp-perl.git/plain/debian/patches/bsd-missing-includes.patch
Thanks for considering,
Damyan Ivanov,
Debian Perl Group