Ideally this would be replaced with similar functionality elsewhere,
but for now this change fixes the FTBFS on Debian hurd-* and
kfreebsd-*.
-SUBDIRS= base adns hbytes cdb crypto dgram tuntap
+SUBDIRS= base adns hbytes cdb crypto dgram
+
+ifneq ($(wildcard /usr/include/linux/if_tun.h),)
+SUBDIRS+= tuntap
+endif
ifneq ($(wildcard /usr/include/wiringPi.h /usr/include/arm-*/wiringPi.h),)
SUBDIRS+= wiringpi
* wiringpi module. Built only if the wiringpi headers are actually
installed (so not in the official Debian release).
* Update .gitignore for recent debhelper droppings.
+ * Do not build tuntap on non-Linux platforms. Ideally this would
+ be replaced with similar functionality elsewhere, but for now
+ this change fixes the FTBFS on Debian hurd-* and kfreebsd-*.
-- Ian Jackson <ijackson@chiark.greenend.org.uk> Tue, 24 Jan 2017 13:14:06 +0000