From: Ian Jackson Date: Tue, 24 Jan 2017 13:34:57 +0000 (+0000) Subject: tuntap: Do not build on non-Linux platforms. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=commitdiff_plain;h=5dc0c5b5a5d8b47aebe392186cf9afcdfc1d221f;hp=702fa61a0538c3e49bfd8205fcf2783f8f8e1741 tuntap: Do not build 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-*. --- diff --git a/Makefile b/Makefile index b457d71..74fc544 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ -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 diff --git a/debian/changelog b/debian/changelog index d1e1646..62d951a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ chiark-tcl (1.1.4~~iwj) UNRELEASED; urgency=low * 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 Tue, 24 Jan 2017 13:14:06 +0000