-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
0002-Add-missing-includes.patch
36 lines (33 loc) 路 1.29 KB
/
0002-Add-missing-includes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20Offenh=C3=A4user?= <offenhaeuser@protonmail.com>
Date: Tue, 7 Feb 2023 21:21:46 +0100
Subject: [PATCH] Add missing includes
These are missing when compiling the release build.
---
src/openrct2/core/String.cpp | 1 +
src/openrct2/network/Socket.cpp | 2 ++
2 files changed, 3 insertions(+)
diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp
index 4cc60ce853d4ab8b707483c949032f48271f9660..32a88bde45fd53082cf5ba38c9f7bd02a6c16d5d 100644
--- a/src/openrct2/core/String.cpp
+++ b/src/openrct2/core/String.cpp
@@ -8,6 +8,7 @@
*****************************************************************************/
#include <algorithm>
+#include <alloca.h>
#include <cctype>
#include <cwctype>
#include <iomanip>
diff --git a/src/openrct2/network/Socket.cpp b/src/openrct2/network/Socket.cpp
index b8b2edbf32a292acefc67893e4c6f1f12f266691..a84c92fc471b55bdf9476821a234cd727a0b370b 100644
--- a/src/openrct2/network/Socket.cpp
+++ b/src/openrct2/network/Socket.cpp
@@ -52,6 +52,8 @@
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+ #include <sys/time.h>
+ #include <sys/select.h>
#include <unistd.h>
#include "../common.h"
using SOCKET = int32_t;