summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bsd/tun.c8
1 files changed, 6 insertions, 2 deletions
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 <stdio.h>
+
#include "datatypes.h"
#include "tun.h"
#include "tun_helper.h"
-#include "log.h"
-
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
@@ -69,6 +70,9 @@
#include <netinet/ip.h>
#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)