aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-02-19 12:50:54 +0100
committerGitHub <noreply@github.com>2018-02-19 12:50:54 +0100
commit12e33ae872795518aba882c57857dfefbc0c0eda (patch)
tree35024e05886caffc81ecdaf8d5bf4ea442a36ea9 /src
parent981661a36d691c00f3499d6cf5a3a4db6736a626 (diff)
parent549bcf6d71f7bb31c8be6e1d8700ab51c55b6987 (diff)
Merge pull request #222 from dogtopus/master
Fix build on linux, enable build directory support
Diffstat (limited to 'src')
-rw-r--r--src/WifiAP.cpp3
-rw-r--r--src/libui_sdl/Platform.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/WifiAP.cpp b/src/WifiAP.cpp
index f8c9f79..963b4d2 100644
--- a/src/WifiAP.cpp
+++ b/src/WifiAP.cpp
@@ -23,6 +23,9 @@
#include "WifiAP.h"
#include "Platform.h"
+#ifndef __WIN32__
+#include <stddef.h>
+#endif
namespace WifiAP
{
diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp
index 507e0f3..80aa0e9 100644
--- a/src/libui_sdl/Platform.cpp
+++ b/src/libui_sdl/Platform.cpp
@@ -38,6 +38,7 @@
#define socket_t int
#define sockaddr_t struct sockaddr
#define closesocket close
+ #define PCAP_OPENFLAG_PROMISCUOUS 1
#endif
#ifndef INVALID_SOCKET