This commit is contained in:
Kovid Goyal 2024-06-24 18:21:28 +05:30
parent 8f9c9db1cf
commit a43188e778
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

3
glfw/wl_init.c vendored
View file

@ -44,6 +44,8 @@
#include <sys/socket.h>
#include <wayland-client.h>
#include <stdio.h>
// errno.h needed for BSD code paths
#include <errno.h>
// Needed for the BTN_* defines
#ifdef __has_include
#if __has_include(<linux/input.h>)
@ -637,6 +639,7 @@ GLFWAPI GLFWColorScheme glfwGetCurrentSystemColorTheme(void) {
static pid_t
get_socket_peer_pid(int fd) {
(void)fd;
#ifdef __linux__
struct ucred ucred;
socklen_t len = sizeof(struct ucred);