From a43188e7789690cc49530c615b2fb36390315201 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Jun 2024 18:21:28 +0530 Subject: [PATCH] Fix #7571 --- glfw/wl_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glfw/wl_init.c b/glfw/wl_init.c index 1f1382f70..cacf4abfc 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -44,6 +44,8 @@ #include #include #include +// errno.h needed for BSD code paths +#include // Needed for the BTN_* defines #ifdef __has_include #if __has_include() @@ -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);