summaryrefslogtreecommitdiffstats
path: root/src/UDPServer/UDPServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/UDPServer/UDPServer.cpp')
-rw-r--r--src/UDPServer/UDPServer.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/UDPServer/UDPServer.cpp b/src/UDPServer/UDPServer.cpp
index cd36647..854835a 100644
--- a/src/UDPServer/UDPServer.cpp
+++ b/src/UDPServer/UDPServer.cpp
@@ -41,6 +41,16 @@
* \param[in] addr The address we receive on.
* \param[in] port The port we receive from.
*/
+
+#include "UDPServer.h"
+
+ #include <string.h>
+ #include <unistd.h>
+
+ #ifndef SOCK_CLOEXEC
+ #define SOCK_CLOEXEC 0
+ #endif
+
UDPServer::UDPServer(const std::string& addr, int port)
: f_port(port)
, f_addr(addr)