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);