X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Fbsd%2Ftun.c;h=ceb54a114cf897e5308c2e441d1b8aede56e924f;hp=a469c58d1c3562f566c04926b19f0d023c977289;hb=70cf739729db4c5d7f72b64207855889e57ee49a;hpb=71f6f666a3d69c6e1e7a77e238362c5bbe288e66 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)