mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 13:32:01 +00:00
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 was adapted to 3.3-stable from
51920ede68
.
This commit is contained in:
parent
15b771759d
commit
a1090c867d
@ -233,6 +233,7 @@ video tutorials.
|
|||||||
- Paul Sultana
|
- Paul Sultana
|
||||||
- Nathan Sweet
|
- Nathan Sweet
|
||||||
- TTK-Bandit
|
- TTK-Bandit
|
||||||
|
- Nuno Teixeira
|
||||||
- Sergey Tikhomirov
|
- Sergey Tikhomirov
|
||||||
- Arthur Tombs
|
- Arthur Tombs
|
||||||
- TronicLabs
|
- TronicLabs
|
||||||
|
@ -126,6 +126,7 @@ information on what to include when reporting a bug.
|
|||||||
- Bugfix: `glfwGetKeyName` emitted `GLFW_INVALID_VALUE` for scancodes with no
|
- Bugfix: `glfwGetKeyName` emitted `GLFW_INVALID_VALUE` for scancodes with no
|
||||||
key token (#1785,#2214)
|
key token (#1785,#2214)
|
||||||
- [Wayland] Bugfix: Terminating the library before showing a window could segfault
|
- [Wayland] Bugfix: Terminating the library before showing a window could segfault
|
||||||
|
- [Wayland] Bugfix: Compilation failed on FreeBSD (#2445)
|
||||||
- [Linux] Bugfix: `regfree´ was called on invalid data (#2464)
|
- [Linux] Bugfix: `regfree´ was called on invalid data (#2464)
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,11 +97,11 @@ On Fedora and derivatives like Red Hat you will need the `wayland-devel`,
|
|||||||
sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules
|
sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
On FreeBSD you will need the `wayland`, `libxkbcommon`, `wayland-protocols` and
|
On FreeBSD you will need the `wayland`, `libxkbcommon`, `wayland-protocols`,
|
||||||
`kf5-extra-cmake-modules` packages.
|
`evdev-proto` and `kf5-extra-cmake-modules` packages.
|
||||||
|
|
||||||
@code{.sh}
|
@code{.sh}
|
||||||
pkg install wayland libxkbcommon wayland-protocols kf5-extra-cmake-modules
|
pkg install wayland libxkbcommon wayland-protocols evdev-proto kf5-extra-cmake-modules
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
Once you have the required depdendencies, move on to @ref compile_generate.
|
Once you have the required depdendencies, move on to @ref compile_generate.
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <linux/input-event-codes.h>
|
||||||
|
|
||||||
#define GLFW_BORDER_SIZE 4
|
#define GLFW_BORDER_SIZE 4
|
||||||
#define GLFW_CAPTION_HEIGHT 24
|
#define GLFW_CAPTION_HEIGHT 24
|
||||||
|
Loading…
Reference in New Issue
Block a user