From 56d8e862409ae91c63a27968b01a48a94aafb205 Mon Sep 17 00:00:00 2001 From: Ivo Timmermans Date: Sun, 22 Oct 2000 13:37:15 +0000 Subject: [PATCH] Include linux/sockios.h and net/if.h anyway, regardless of the value of HAVE_TUNTAP. --- src/net.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/net.c b/src/net.c index 785cb678..47c185d4 100644 --- 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.43 2000/10/21 11:52:06 guus Exp $ + $Id: net.c,v 1.35.4.44 2000/10/22 13:37:15 zarq Exp $ */ #include "config.h" @@ -25,6 +25,8 @@ #include #include #include +#include +#include #include #include #include @@ -38,8 +40,6 @@ #include #ifdef HAVE_TUNTAP -#include -#include #include LINUX_IF_TUN_H #endif @@ -335,10 +335,8 @@ int setup_tap_fd(void) const char *tapfname; config_t const *cfg; char *envvar; - -#ifdef HAVE_TUNTAP struct ifreq ifr; -#endif + cp if((cfg = get_config_val(config, tapdevice))) tapfname = cfg->data.ptr; -- 2.20.1