Simplify evdev includes on FreeBSD by relying on up-to-date package
As evdev-proto is installed by CI some files have been missed:
../examples/pointer-constraints.c:2:10: fatal error: 'linux/input-event-codes.h' file not found
#include <linux/input-event-codes.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../examples/relative-pointer-unstable-v1.c:5:10: fatal error: 'linux/input-event-codes.h' file not found
#include <linux/input-event-codes.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Jan Beich
5 years ago
0 | 0 |
#include <assert.h>
|
1 | |
#include <dev/evdev/input.h>
|
|
1 |
#include <linux/input.h>
|
2 | 2 |
#include <errno.h>
|
3 | 3 |
#include <fcntl.h>
|
4 | 4 |
#include <signal.h>
|
0 | 0 |
#define _POSIX_C_SOURCE 200809L
|
1 | 1 |
#ifdef __FreeBSD__
|
2 | 2 |
#define __BSD_VISIBLE 1
|
3 | |
#include <dev/evdev/input.h>
|
|
3 |
#include <linux/input.h>
|
4 | 4 |
#endif
|
5 | 5 |
#include <errno.h>
|
6 | 6 |
#include <fcntl.h>
|
1 | 1 |
|
2 | 2 |
#include <wlr/config.h>
|
3 | 3 |
|
4 | |
#ifdef __linux__
|
5 | 4 |
#include <linux/input-event-codes.h>
|
6 | |
#elif __FreeBSD__
|
7 | |
#include <dev/evdev/input-event-codes.h>
|
8 | |
#endif
|
9 | 5 |
|
10 | 6 |
#include <xcb/xcb.h>
|
11 | 7 |
#include <xcb/xfixes.h>
|
7 | 7 |
#include "idle-inhibit-unstable-v1-client-protocol.h"
|
8 | 8 |
#include "xdg-shell-client-protocol.h"
|
9 | 9 |
|
10 | |
#ifdef __linux__
|
11 | 10 |
#include <linux/input-event-codes.h>
|
12 | |
#elif __FreeBSD__
|
13 | |
#include <dev/evdev/input-event-codes.h>
|
14 | |
#endif
|
15 | 11 |
|
16 | 12 |
/**
|
17 | 13 |
* Usage: idle-inhibit
|
0 | 0 |
#define _POSIX_C_SOURCE 200112L
|
1 | |
#ifdef __linux__
|
2 | 1 |
#include <linux/input-event-codes.h>
|
3 | |
#elif __FreeBSD__
|
4 | |
#include <dev/evdev/input-event-codes.h>
|
5 | |
#endif
|
6 | 2 |
#include <assert.h>
|
7 | 3 |
#include <GLES2/gl2.h>
|
8 | 4 |
#include <limits.h>
|
6 | 6 |
#include <wlr/util/edges.h>
|
7 | 7 |
#include <wlr/util/log.h>
|
8 | 8 |
#include <wlr/util/region.h>
|
9 | |
#ifdef __linux__
|
10 | 9 |
#include <linux/input-event-codes.h>
|
11 | |
#elif __FreeBSD__
|
12 | |
#include <dev/evdev/input-event-codes.h>
|
13 | |
#endif
|
14 | 10 |
#include "rootston/cursor.h"
|
15 | 11 |
#include "rootston/desktop.h"
|
16 | 12 |
#include "rootston/view.h"
|