summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-08-30 12:54:50 +0000
committerChristian Pointner <equinox@anytun.org>2014-08-30 12:54:50 +0000
commit509be86368f34f0f08f7373f1af425ca166909be (patch)
treea91864834dad199ac5408fac9f284124dc135361 /src
parentcleanups for README (diff)
fixe bsd tun device warnings
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)