From 3dc646ea889084cd7aa980f38124b5df548cf10d Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Mon, 5 Jun 2023 23:45:28 +0300 Subject: [PATCH] Add some missing includes/declarations --- include/backend/drm/properties.h | 1 + include/backend/drm/renderer.h | 2 ++ include/backend/session/session.h | 3 +++ include/types/wlr_data_device.h | 1 + include/util/shm.h | 1 + include/util/time.h | 1 + include/xcursor/cursor_data.h | 1 + include/xwayland/selection.h | 5 +++++ xwayland/sockets.h | 2 ++ 9 files changed, 17 insertions(+) diff --git a/include/backend/drm/properties.h b/include/backend/drm/properties.h index b6ca14f1..103d1259 100644 --- a/include/backend/drm/properties.h +++ b/include/backend/drm/properties.h @@ -2,6 +2,7 @@ #define BACKEND_DRM_PROPERTIES_H #include +#include #include /* diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 07fcf28a..d29fe2ad 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -5,8 +5,10 @@ #include #include #include +#include struct wlr_drm_backend; +struct wlr_drm_format; struct wlr_drm_plane; struct wlr_buffer; diff --git a/include/backend/session/session.h b/include/backend/session/session.h index 5eca7f57..0275f69f 100644 --- a/include/backend/session/session.h +++ b/include/backend/session/session.h @@ -1,6 +1,9 @@ #ifndef BACKEND_SESSION_SESSION_H #define BACKEND_SESSION_SESSION_H +#include + +struct wl_display; struct wlr_session; struct wlr_session *libseat_session_create(struct wl_display *disp); diff --git a/include/types/wlr_data_device.h b/include/types/wlr_data_device.h index 07a08c2f..99aff428 100644 --- a/include/types/wlr_data_device.h +++ b/include/types/wlr_data_device.h @@ -2,6 +2,7 @@ #define TYPES_WLR_DATA_DEVICE_H #include +#include #define DATA_DEVICE_ALL_ACTIONS (WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY | \ WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE | \ diff --git a/include/util/shm.h b/include/util/shm.h index 331532fc..3beabcab 100644 --- a/include/util/shm.h +++ b/include/util/shm.h @@ -2,6 +2,7 @@ #define UTIL_SHM_H #include +#include int create_shm_file(void); int allocate_shm_file(size_t size); diff --git a/include/util/time.h b/include/util/time.h index 09a1f68e..3f76aa47 100644 --- a/include/util/time.h +++ b/include/util/time.h @@ -1,6 +1,7 @@ #ifndef UTIL_TIME_H #define UTIL_TIME_H +#include #include /** diff --git a/include/xcursor/cursor_data.h b/include/xcursor/cursor_data.h index 82627003..83270141 100644 --- a/include/xcursor/cursor_data.h +++ b/include/xcursor/cursor_data.h @@ -25,6 +25,7 @@ * Author: Keith Packard, SuSE, Inc. */ +#include #include static const uint32_t cursor_data[] = { diff --git a/include/xwayland/selection.h b/include/xwayland/selection.h index 07659cfd..30831023 100644 --- a/include/xwayland/selection.h +++ b/include/xwayland/selection.h @@ -1,7 +1,9 @@ #ifndef XWAYLAND_SELECTION_H #define XWAYLAND_SELECTION_H +#include #include +#include #define INCR_CHUNK_SIZE (64 * 1024) @@ -11,6 +13,9 @@ struct wlr_primary_selection_source; struct wlr_xwm_selection; +struct wlr_drag; +struct wlr_data_source; + struct wlr_xwm_selection_transfer { struct wlr_xwm_selection *selection; diff --git a/xwayland/sockets.h b/xwayland/sockets.h index cf42b970..4c55a087 100644 --- a/xwayland/sockets.h +++ b/xwayland/sockets.h @@ -1,6 +1,8 @@ #ifndef XWAYLAND_SOCKETS_H #define XWAYLAND_SOCKETS_H +#include + bool set_cloexec(int fd, bool cloexec); void unlink_display_sockets(int display); int open_display_sockets(int socks[2]);