-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-emulation/rpcs3: add include header patch
RPCS3/rpcs3#15075 Related: #259 Signed-off-by: Andrew Udvare <audvare@gmail.com>
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 93dfa3f69928dd96be64139b6d854ed7a6727b50 Mon Sep 17 00:00:00 2001 | ||
From: pastalian <pastalian46@gmail.com> | ||
Date: Sun, 21 Jan 2024 17:41:16 +0900 | ||
Subject: [PATCH] Add missing headers | ||
|
||
Some systems must explicitly include these headers. | ||
--- | ||
3rdparty/pine/pine_server.h | 2 -- | ||
Utilities/JITASM.cpp | 1 + | ||
Utilities/Thread.cpp | 1 + | ||
3 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/3rdparty/pine/pine_server.h b/3rdparty/pine/pine_server.h | ||
index d3cb323cbded..44f2ab708784 100644 | ||
--- a/3rdparty/pine/pine_server.h | ||
+++ b/3rdparty/pine/pine_server.h | ||
@@ -27,10 +27,8 @@ | ||
#include <sys/un.h> | ||
#include <arpa/inet.h> | ||
#include <poll.h> | ||
-#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) | ||
#include <unistd.h> | ||
#endif | ||
-#endif | ||
|
||
#ifdef _WIN32 | ||
constexpr SOCKET invalid_socket = INVALID_SOCKET; | ||
|
||
diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp | ||
index a81117e2d0a8..8e536c054191 100644 | ||
--- a/Utilities/Thread.cpp | ||
+++ b/Utilities/Thread.cpp | ||
@@ -46,6 +46,7 @@ DYNAMIC_IMPORT_RENAME("Kernel32.dll", SetThreadDescriptionImport, "SetThreadDesc | ||
#include <time.h> | ||
#endif | ||
#ifdef __linux__ | ||
+#include <sys/syscall.h> | ||
#include <sys/timerfd.h> | ||
#include <unistd.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters