Imported Upstream version 0.3.6
[debian/uanytun.git] / src / bsd / tun.c
index a469c58..ceb54a1 100644 (file)
  *  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)