From 509be86368f34f0f08f7373f1af425ca166909be Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 30 Aug 2014 12:54:50 +0000 Subject: fixe bsd tun device warnings --- src/bsd/tun.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/bsd') diff --git a/src/bsd/tun.c b/src/bsd/tun.c index a469c58..ceb54a1 100644 --- a/src/bsd/tun.c +++ b/src/bsd/tun.c @@ -46,14 +46,15 @@ * files in the program, then also delete it here. */ +#define _GNU_SOURCE +#include + #include "datatypes.h" #include "tun.h" #include "tun_helper.h" -#include "log.h" - #include #include #include @@ -69,6 +70,9 @@ #include #define DEVICE_FILE_MAX 255 +#include "log.h" +#include "sysexec.h" + int tun_init(tun_device_t* dev, const char* dev_name, const char* dev_type, const char* ifcfg_addr, u_int16_t ifcfg_prefix) { if(!dev) -- cgit v1.2.3