commit d0e70d6f69dd4c852793ab90f21ac336b4fbcb40
parent 46117277d3218ec780839f7cb036ff4024eefb14
Author: sin <sin@2f30.org>
Date: Tue, 12 Apr 2016 11:12:00 +0100
make linux port compile again
Diffstat:
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dev_linux.c b/dev_linux.c
@@ -2,9 +2,11 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <net/if.h>
#include <linux/if_tun.h>
#include <fcntl.h>
+#include <stdint.h>
#include <string.h>
#include <unistd.h>
diff --git a/log.c b/log.c
@@ -1,4 +1,5 @@
#include <stdarg.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
diff --git a/stun.c b/stun.c
@@ -63,6 +63,9 @@
#include <unistd.h>
#include <openssl/evp.h>
+#if defined(__linux__)
+#include <bsd/stdlib.h>
+#endif
#include "stun.h"