summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/address.cpp2
-rw-r--r--src/network/core/core.cpp2
-rw-r--r--src/network/core/host.cpp2
-rw-r--r--src/network/core/packet.cpp2
-rw-r--r--src/network/core/tcp.cpp2
-rw-r--r--src/network/core/tcp_admin.cpp2
-rw-r--r--src/network/core/tcp_connect.cpp2
-rw-r--r--src/network/core/tcp_content.cpp2
-rw-r--r--src/network/core/tcp_game.cpp2
-rw-r--r--src/network/core/tcp_http.cpp2
-rw-r--r--src/network/core/udp.cpp2
-rw-r--r--src/network/network.cpp2
-rw-r--r--src/network/network_admin.cpp2
-rw-r--r--src/network/network_chat_gui.cpp2
-rw-r--r--src/network/network_client.cpp2
-rw-r--r--src/network/network_command.cpp2
-rw-r--r--src/network/network_content.cpp2
-rw-r--r--src/network/network_content_gui.cpp2
-rw-r--r--src/network/network_gamelist.cpp2
-rw-r--r--src/network/network_gui.cpp2
-rw-r--r--src/network/network_server.cpp2
-rw-r--r--src/network/network_udp.cpp2
22 files changed, 44 insertions, 0 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp
index d8c990e24..d25ade4a3 100644
--- a/src/network/core/address.cpp
+++ b/src/network/core/address.cpp
@@ -16,6 +16,8 @@
#include "address.h"
#include "../../debug.h"
+#include "../../safeguards.h"
+
/**
* Get the hostname; in case it wasn't given the
* IPv4 dotted representation is given.
diff --git a/src/network/core/core.cpp b/src/network/core/core.cpp
index 867bb4bb9..7a2ad92a2 100644
--- a/src/network/core/core.cpp
+++ b/src/network/core/core.cpp
@@ -18,6 +18,8 @@
#include "os_abstraction.h"
#include "packet.h"
+#include "../../safeguards.h"
+
#ifdef __MORPHOS__
/* the library base is required here */
diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp
index 0af0f7992..cf98239f8 100644
--- a/src/network/core/host.cpp
+++ b/src/network/core/host.cpp
@@ -15,6 +15,8 @@
#include "../../debug.h"
#include "address.h"
+#include "../../safeguards.h"
+
/**
* Internal implementation for finding the broadcast IPs.
* This function is implemented multiple times for multiple targets.
diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp
index 4d9345e82..7548132e0 100644
--- a/src/network/core/packet.cpp
+++ b/src/network/core/packet.cpp
@@ -18,6 +18,8 @@
#include "packet.h"
+#include "../../safeguards.h"
+
/**
* Create a packet that is used to read from a network socket
* @param cs the socket handler associated with the socket we are reading from
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp
index e68c354fc..790941fc0 100644
--- a/src/network/core/tcp.cpp
+++ b/src/network/core/tcp.cpp
@@ -18,6 +18,8 @@
#include "tcp.h"
+#include "../../safeguards.h"
+
/**
* Construct a socket handler for a TCP connection.
* @param s The just opened TCP connection.
diff --git a/src/network/core/tcp_admin.cpp b/src/network/core/tcp_admin.cpp
index 636696e2c..284ceda9b 100644
--- a/src/network/core/tcp_admin.cpp
+++ b/src/network/core/tcp_admin.cpp
@@ -19,6 +19,8 @@
#include "tcp_admin.h"
#include "../../debug.h"
+#include "../../safeguards.h"
+
/* Make sure that these enums match. */
assert_compile((int)CRR_MANUAL == (int)ADMIN_CRR_MANUAL);
assert_compile((int)CRR_AUTOCLEAN == (int)ADMIN_CRR_AUTOCLEAN);
diff --git a/src/network/core/tcp_connect.cpp b/src/network/core/tcp_connect.cpp
index ed2885b0e..ccbf93f3c 100644
--- a/src/network/core/tcp_connect.cpp
+++ b/src/network/core/tcp_connect.cpp
@@ -18,6 +18,8 @@
#include "tcp.h"
+#include "../../safeguards.h"
+
/** List of connections that are currently being created */
static SmallVector<TCPConnecter *, 1> _tcp_connecters;
diff --git a/src/network/core/tcp_content.cpp b/src/network/core/tcp_content.cpp
index 8a4604feb..fc22c4491 100644
--- a/src/network/core/tcp_content.cpp
+++ b/src/network/core/tcp_content.cpp
@@ -24,6 +24,8 @@
#endif /* OPENTTD_MSU */
#include "tcp_content.h"
+#include "../../safeguards.h"
+
/** Clear everything in the struct */
ContentInfo::ContentInfo()
{
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index d263b28e4..9b3f7b5ef 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -22,6 +22,8 @@
#include "table/strings.h"
+#include "../../safeguards.h"
+
/**
* Create a new socket for the game connection.
* @param s The socket to connect with.
diff --git a/src/network/core/tcp_http.cpp b/src/network/core/tcp_http.cpp
index a9829d560..a8bb64080 100644
--- a/src/network/core/tcp_http.cpp
+++ b/src/network/core/tcp_http.cpp
@@ -20,6 +20,8 @@
#include "tcp_http.h"
+#include "../../safeguards.h"
+
/** List of open HTTP connections. */
static SmallVector<NetworkHTTPSocketHandler *, 1> _http_connections;
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index f7abc7e35..ce5f06b1f 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -18,6 +18,8 @@
#include "../../debug.h"
#include "udp.h"
+#include "../../safeguards.h"
+
/**
* Create an UDP socket but don't listen yet.
* @param bind the addresses to bind to.
diff --git a/src/network/network.cpp b/src/network/network.cpp
index a3c8fd4a9..c22615a95 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -38,6 +38,8 @@
#include "../gfx_func.h"
#include "../error.h"
+#include "../safeguards.h"
+
#ifdef DEBUG_DUMP_COMMANDS
#include "../fileio_func.h"
/** When running the server till the wait point, run as fast as we can! */
diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp
index 0327bf366..c1ca3d3bb 100644
--- a/src/network/network_admin.cpp
+++ b/src/network/network_admin.cpp
@@ -25,6 +25,8 @@
#include "../rev.h"
#include "../game/game.hpp"
+#include "../safeguards.h"
+
/* This file handles all the admin network commands. */
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index 8b965feff..2a06082dd 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -30,6 +30,8 @@
#include "table/strings.h"
+#include "../safeguards.h"
+
/** The draw buffer must be able to contain the chat message, client name and the "[All]" message,
* some spaces and possible translations of [All] to other languages. */
assert_compile((int)DRAW_STRING_BUFFER >= (int)NETWORK_CHAT_LENGTH + NETWORK_NAME_LENGTH + 40);
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 44c13fbc8..10e3695b7 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -34,6 +34,8 @@
#include "table/strings.h"
+#include "../safeguards.h"
+
/* This file handles all the client-commands */
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp
index 7ba26041c..6e5458fd8 100644
--- a/src/network/network_command.cpp
+++ b/src/network/network_command.cpp
@@ -19,6 +19,8 @@
#include "../company_func.h"
#include "../settings_type.h"
+#include "../safeguards.h"
+
/** Table with all the callbacks we'll use for conversion*/
static CommandCallback * const _callback_table[] = {
/* 0x00 */ NULL,
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp
index 8677a8104..215ed5dfd 100644
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -27,6 +27,8 @@
#include <zlib.h>
#endif
+#include "../safeguards.h"
+
extern bool HasScenario(const ContentInfo *ci, bool md5sum);
/** The client we use to connect to the server. */
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 808c3ea23..332cf1a53 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -29,6 +29,8 @@
#include "table/strings.h"
#include "../table/sprites.h"
+#include "../safeguards.h"
+
/** Whether the user accepted to enter external websites during this session. */
static bool _accepted_external_search = false;
diff --git a/src/network/network_gamelist.cpp b/src/network/network_gamelist.cpp
index 949636213..e5d80630e 100644
--- a/src/network/network_gamelist.cpp
+++ b/src/network/network_gamelist.cpp
@@ -22,6 +22,8 @@
#include "network_udp.h"
#include "network_gamelist.h"
+#include "../safeguards.h"
+
NetworkGameList *_network_game_list = NULL;
/** Mutex for handling delayed insertion/querying of servers. */
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 615710465..09c2623e7 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -39,6 +39,8 @@
#include "../stringfilter_type.h"
+#include "../safeguards.h"
+
static void ShowNetworkStartServerWindow();
static void ShowNetworkLobbyWindow(NetworkGameList *ngl);
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index fcaad19ab..ebc7ee37e 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -33,6 +33,8 @@
#include "../core/random_func.hpp"
#include "../rev.h"
+#include "../safeguards.h"
+
/* This file handles all the server-commands */
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp
index cde2994f7..46d8fddef 100644
--- a/src/network/network_udp.cpp
+++ b/src/network/network_udp.cpp
@@ -34,6 +34,8 @@
#include "core/udp.h"
+#include "../safeguards.h"
+
/** Mutex for all out threaded udp resolution and such. */
static ThreadMutex *_network_udp_mutex = ThreadMutex::New();