mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:05:59 +01:00
core: Include cstring whenever strncpy is used (#7267)
Fixes ppc64le build in alpine
This commit is contained in:
parent
4fdc0d55e4
commit
0bf9ceb53b
4 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <hyprutils/string/String.hpp>
|
#include <hyprutils/string/String.hpp>
|
||||||
|
#include <cstring>
|
||||||
using namespace Hyprutils::String;
|
using namespace Hyprutils::String;
|
||||||
|
|
||||||
#include "Strings.hpp"
|
#include "Strings.hpp"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
namespace Systemd {
|
namespace Systemd {
|
||||||
int SdBooted(void) {
|
int SdBooted(void) {
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
CEventManager::CEventManager() {
|
CEventManager::CEventManager() {
|
||||||
m_iSocketFD = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
|
m_iSocketFD = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
// TODO: cleanup
|
// TODO: cleanup
|
||||||
static bool set_cloexec(int fd, bool cloexec) {
|
static bool set_cloexec(int fd, bool cloexec) {
|
||||||
|
|
Loading…
Reference in a new issue