aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorZach DeCook <[email protected]>2024-08-10 16:09:12 -0400
committerGitHub <[email protected]>2024-08-10 21:09:12 +0100
commit0bf9ceb53b338c79ab65e631877efcf96f53b49a (patch)
tree882c44bb89ef3c5902d7d5ccc2c4820d1096f702 /src
parent4fdc0d55e4b44bb5300679025d2378fb6de0cae4 (diff)
downloadHyprland-0bf9ceb53b338c79ab65e631877efcf96f53b49a.tar.gz
Hyprland-0bf9ceb53b338c79ab65e631877efcf96f53b49a.zip
core: Include cstring whenever strncpy is used (#7267)
Fixes ppc64le build in alpine
Diffstat (limited to 'src')
-rw-r--r--src/helpers/SdDaemon.cpp1
-rw-r--r--src/managers/EventManager.cpp1
-rw-r--r--src/xwayland/Server.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/SdDaemon.cpp b/src/helpers/SdDaemon.cpp
index 25e0ca3b..48c23e6b 100644
--- a/src/helpers/SdDaemon.cpp
+++ b/src/helpers/SdDaemon.cpp
@@ -8,6 +8,7 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <string.h>
+#include <cstring>
namespace Systemd {
int SdBooted(void) {
diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp
index 75c98e2a..079a6b68 100644
--- a/src/managers/EventManager.cpp
+++ b/src/managers/EventManager.cpp
@@ -8,6 +8,7 @@
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
+#include <cstring>
CEventManager::CEventManager() {
m_iSocketFD = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
diff --git a/src/xwayland/Server.cpp b/src/xwayland/Server.cpp
index cec582f6..200bec70 100644
--- a/src/xwayland/Server.cpp
+++ b/src/xwayland/Server.cpp
@@ -19,6 +19,7 @@
#include <sys/un.h>
#include <unistd.h>
#include <filesystem>
+#include <cstring>
// TODO: cleanup
static bool set_cloexec(int fd, bool cloexec) {