Fix FreeBSD Wayland build

This commit is contained in:
MiguelRegueiro 2026-07-06 21:07:01 +02:00
parent fab7ce90db
commit aedb75d4f3
2 changed files with 12 additions and 2 deletions

View file

@ -12,6 +12,16 @@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
// Needed for the BTN_* defines
#ifdef __has_include
#if __has_include(<linux/input.h>)
#include <linux/input.h>
#elif __has_include(<dev/evdev/input.h>)
#include <dev/evdev/input.h>
#endif
#else
#include <linux/input.h>
#endif
#define decs window->wl.decorations
#define debug debug_rendering

View file

@ -9,8 +9,8 @@
#include <structmember.h>
#include "colors.h"
#include "color-names.h"
#ifdef __APPLE__
// Needed for strod_l
#if defined(__APPLE__) || defined(__FreeBSD__)
// Needed for strtod_l
#include <xlocale.h>
#endif