From cf37ba4c0bf31316b698ba23015f91903766871d Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Thu, 18 Feb 2021 22:31:39 +0000 Subject: [PATCH] Add feature macros to more C files These source files use "struct timespec", which is POSIX 1993.09. Signed-off-by: Paul Cercueil --- backend/wayland/output.c | 1 + types/data_device/wlr_data_device.c | 1 + types/data_device/wlr_drag.c | 1 + types/wlr_export_dmabuf_v1.c | 1 + types/wlr_idle.c | 1 + types/wlr_keyboard_shortcuts_inhibit_v1.c | 1 + types/wlr_pointer_constraints_v1.c | 1 + types/wlr_primary_selection.c | 1 + types/wlr_relative_pointer_v1.c | 1 + types/wlr_screencopy_v1.c | 1 + types/wlr_virtual_pointer_v1.c | 1 + types/wlr_xdg_decoration_v1.c | 1 + types/xdg_shell/wlr_xdg_popup.c | 1 + types/xdg_shell/wlr_xdg_positioner.c | 1 + types/xdg_shell/wlr_xdg_shell.c | 1 + types/xdg_shell/wlr_xdg_surface.c | 1 + 16 files changed, 16 insertions(+) diff --git a/backend/wayland/output.c b/backend/wayland/output.c index d5410e0d3..8ff8fa2a0 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/data_device/wlr_data_device.c b/types/data_device/wlr_data_device.c index 6cd84ec0a..beac49612 100644 --- a/types/data_device/wlr_data_device.c +++ b/types/data_device/wlr_data_device.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/data_device/wlr_drag.c b/types/data_device/wlr_drag.c index 53bf4066a..e3c1e249b 100644 --- a/types/data_device/wlr_drag.c +++ b/types/data_device/wlr_drag.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c index a8e2a4bde..98ceae68f 100644 --- a/types/wlr_export_dmabuf_v1.c +++ b/types/wlr_export_dmabuf_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_idle.c b/types/wlr_idle.c index 4c338931c..80fd871fa 100644 --- a/types/wlr_idle.c +++ b/types/wlr_idle.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_keyboard_shortcuts_inhibit_v1.c b/types/wlr_keyboard_shortcuts_inhibit_v1.c index fe4e64b04..8360a9c21 100644 --- a/types/wlr_keyboard_shortcuts_inhibit_v1.c +++ b/types/wlr_keyboard_shortcuts_inhibit_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_pointer_constraints_v1.c b/types/wlr_pointer_constraints_v1.c index eca45984c..f1db8e341 100644 --- a/types/wlr_pointer_constraints_v1.c +++ b/types/wlr_pointer_constraints_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_primary_selection.c b/types/wlr_primary_selection.c index 0875462c8..7e0e11dda 100644 --- a/types/wlr_primary_selection.c +++ b/types/wlr_primary_selection.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_relative_pointer_v1.c b/types/wlr_relative_pointer_v1.c index 8613f2b91..3f8dd8b72 100644 --- a/types/wlr_relative_pointer_v1.c +++ b/types/wlr_relative_pointer_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index 6feb07427..29864c236 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_virtual_pointer_v1.c b/types/wlr_virtual_pointer_v1.c index a9d1fd7bc..5566e9e01 100644 --- a/types/wlr_virtual_pointer_v1.c +++ b/types/wlr_virtual_pointer_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/wlr_xdg_decoration_v1.c b/types/wlr_xdg_decoration_v1.c index 544035b7b..904474c08 100644 --- a/types/wlr_xdg_decoration_v1.c +++ b/types/wlr_xdg_decoration_v1.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/xdg_shell/wlr_xdg_popup.c b/types/xdg_shell/wlr_xdg_popup.c index 69b4cfe19..05d6551fc 100644 --- a/types/xdg_shell/wlr_xdg_popup.c +++ b/types/xdg_shell/wlr_xdg_popup.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include diff --git a/types/xdg_shell/wlr_xdg_positioner.c b/types/xdg_shell/wlr_xdg_positioner.c index f88bf323b..8881c4991 100644 --- a/types/xdg_shell/wlr_xdg_positioner.c +++ b/types/xdg_shell/wlr_xdg_positioner.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include "types/wlr_xdg_shell.h" diff --git a/types/xdg_shell/wlr_xdg_shell.c b/types/xdg_shell/wlr_xdg_shell.c index 0480d5f35..c93fe7c3f 100644 --- a/types/xdg_shell/wlr_xdg_shell.c +++ b/types/xdg_shell/wlr_xdg_shell.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include "types/wlr_xdg_shell.h" diff --git a/types/xdg_shell/wlr_xdg_surface.c b/types/xdg_shell/wlr_xdg_surface.c index edf562abc..c1dfbfba7 100644 --- a/types/xdg_shell/wlr_xdg_surface.c +++ b/types/xdg_shell/wlr_xdg_surface.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 199309L #include #include #include