]> git.meshlink.io Git - meshlink/commitdiff
Corrected #ifdefs for tun/tap support.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Oct 2000 20:30:39 +0000 (20:30 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Oct 2000 20:30:39 +0000 (20:30 +0000)
src/net.c

index fecf7e6ecf8b00241c0d9a21fa2f39ae0e2f834f..c57fc198e2a892f44ae0daed38acd1e65f3bf702 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: net.c,v 1.35.4.37 2000/10/15 19:53:15 zarq Exp $
+    $Id: net.c,v 1.35.4.38 2000/10/15 20:30:39 guus Exp $
 */
 
 #include "config.h"
 #include <syslog.h>
 #include <unistd.h>
 
-/* Next two includes are for tun/tap support */
+#ifdef HAVE_TUNTAP
 #include <net/if.h>
-
-#ifdef HAVE_LINUX_IF_TUN_H
-#include <linux/if_tun.h>
+#include LINUX_IF_TUN_H
 #endif
 
 #include <utils.h>