aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl
diff options
context:
space:
mode:
authordogtopus <dogtopus@users.noreply.github.com>2017-12-22 12:29:34 -0400
committerdogtopus <dogtopus@users.noreply.github.com>2017-12-22 12:29:34 -0400
commit549bcf6d71f7bb31c8be6e1d8700ab51c55b6987 (patch)
tree1e417bee08bb2f7a3670a905e5962c4cdb03178a /src/libui_sdl
parent9336e15197694eeb823da785668c5d892c318db4 (diff)
Fix build on linux, enable build directory support
Specifically: - Include stddef.h for missing ptrdiff_t - Define PCAP_OPENFLAG_PROMISCUOUS if not using WinPcap because it seems to be a WinPcap extension - Make use of CMAKE_CURRENT_{SOURCE,BINARY}_DIR to enable building under a directory other than root of the project
Diffstat (limited to 'src/libui_sdl')
-rw-r--r--src/libui_sdl/Platform.cpp1
1 files changed, 1 insertions, 0 deletions
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