[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#641643: arp-scan: FTBFS on GNU/kFreeBSD



Package: arp-scan
Version: 1.8.1-1
Severity: normal
Tags: patch
Usertags: kfreebsd
X-Debbugs-CC: debian-bsd@lists.debian.org

Hello there,

to my surprise I seem to have found a work-around that
allows the compilation of arp-scan on kfreebsd-{amd64,i386},
and which produces a functional executable for the few manual
tests I did perform.

The debian-bsd list is included here in order to catch
further comments.

Best regards,
  Mats Erik Andersson, DM



--- arp-scan-1.8.1.debian/arp-scan.h	2011-02-25 22:29:48.000000000 +0100
+++ arp-scan-1.8.1/arp-scan.h	2011-09-14 21:18:08.000000000 +0200
@@ -120,7 +120,7 @@
  *
  * 5370 is the value of __APPLE_CC__ for Xcode 2.5 on Tiger with GCC 4.0.1
  */
-#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 5370)
+#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 5370) || defined __FreeBSD_kernel__
 #include <net/bpf.h>
 #endif
 #include <pcap.h>



Reply to: