chiark / gitweb /
tuntap: Do not build on non-Linux platforms.
[chiark-tcl.git] / Makefile
index b457d71..74fc544 100644 (file)
--- 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