Merge pull request #12345 from devnexen/fbsd_build_fix

FreeBSD build fix proposal
This commit is contained in:
Autechre 2021-05-01 17:26:44 +02:00 committed by GitHub
commit 76eeee2c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -47,11 +47,13 @@
#include <poll.h>
#include <libudev.h>
#ifdef __linux__
#if defined(__linux__)
#include <linux/types.h>
#endif
#include <linux/input.h>
#include <linux/kd.h>
#elif defined(__FreeBSD__)
#include <dev/evdev/input.h>
#endif
#ifdef HAVE_CONFIG_H
#include "../../config.h"

View File

@ -51,8 +51,12 @@
#endif
#if defined(__linux__) || defined(HAVE_WAYLAND)
#if defined(__linux__)
#include <linux/input.h>
#include <linux/kd.h>
#elif defined(__FreeBSD__)
#include <dev/evdev/input.h>
#endif
#endif
#ifdef HAVE_X11