Wayland: Fix compilation on FreeBSD

The list of compile-time dependencies on FreeBSD lacked evdev-proto.

Unlike on Linux, the input-event-codes.h header file was not implicitly
included on FreeBSD.

Fixes #2445
This commit is contained in:
Camilla Löwy 2024-01-24 16:54:52 +01:00
parent 291f4d89cd
commit 51920ede68
2 changed files with 5 additions and 4 deletions

View File

@ -101,12 +101,12 @@ On Fedora and derivatives like Red Hat you will need the `wayland-devel`,
sudo dnf install wayland-devel libxkbcommon-devel libXcursor-devel libXi-devel libXinerama-devel libXrandr-devel
@endcode
On FreeBSD you will need the `wayland` and `libxkbcommon` packages. The X11 headers are
installed along the end-user X11 packages, so if you have an X server running you should
have the headers as well. If not, install the `xorgproto` package.
On FreeBSD you will need the `wayland`, `libxkbcommon` and `evdev-proto` packages. The
X11 headers are installed along the end-user X11 packages, so if you have an X server
running you should have the headers as well. If not, install the `xorgproto` package.
@code{.sh}
pkg install wayland libxkbcommon xorgproto
pkg install wayland libxkbcommon evdev-proto xorgproto
@endcode
Once you have the required dependencies, move on to @ref compile_generate.

View File

@ -40,6 +40,7 @@
#include <sys/mman.h>
#include <sys/timerfd.h>
#include <poll.h>
#include <linux/input-event-codes.h>
#include "wayland-client-protocol.h"
#include "xdg-shell-client-protocol.h"