aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/wlroots/files/patch-include_wlr_types_wlr__seat.h
blob: 29f8e9ea55faa8726ecb6bf98d0a983a30814268 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231425

In file included from ../sway/ipc-json.c:7:
In file included from ../include/sway/ipc-json.h:5:
In file included from ../include/sway/input/input-manager.h:6:
In file included from ../include/sway/server.h:9:
In file included from /usr/local/include/wlr/types/wlr_data_device.h:13:
/usr/local/include/wlr/types/wlr_seat.h:197:18: error: field has incomplete type 'struct timespec'
        struct timespec last_event;
                        ^
/usr/local/include/wlr/types/wlr_output.h:123:9: note: forward declaration of 'struct timespec'
        struct timespec *when;
               ^

--- include/wlr/types/wlr_seat.h.orig	2019-08-01 16:00:48 UTC
+++ include/wlr/types/wlr_seat.h
@@ -10,6 +10,9 @@
 #define WLR_TYPES_WLR_SEAT_H
 
 #include <time.h>
+#if defined(_C11_SOURCE) && defined(__FreeBSD__) && __FreeBSD__ < 12
+#include <sys/_timespec.h>
+#endif
 #include <wayland-server-core.h>
 #include <wlr/types/wlr_input_device.h>
 #include <wlr/types/wlr_keyboard.h>