From dae315bd6b3deef4bb69adac70a247b1114d0d71 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 29 Jun 2025 16:28:09 +0000 Subject: [PATCH] pakfire: Declare types before trying to import anything else This should a little bit with the circular imports. Signed-off-by: Michael Tremer --- src/pakfire/cgroup.h | 4 ++-- src/pakfire/jail.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pakfire/cgroup.h b/src/pakfire/cgroup.h index 089da68a..375a158d 100644 --- a/src/pakfire/cgroup.h +++ b/src/pakfire/cgroup.h @@ -21,6 +21,8 @@ #ifndef PAKFIRE_CGROUP_H #define PAKFIRE_CGROUP_H +typedef struct pakfire_cgroup pakfire_cgroup; + #include enum pakfire_cgroup_controllers { @@ -30,8 +32,6 @@ enum pakfire_cgroup_controllers { PAKFIRE_CGROUP_CONTROLLER_IO = (1 << 3), }; -typedef struct pakfire_cgroup pakfire_cgroup; - typedef struct pakfire_cgroup_stats { // CPU struct pakfire_cgroup_cpu_stats { diff --git a/src/pakfire/jail.h b/src/pakfire/jail.h index 1b0d7096..a64bb66c 100644 --- a/src/pakfire/jail.h +++ b/src/pakfire/jail.h @@ -23,14 +23,14 @@ #include +typedef struct pakfire_jail pakfire_jail; + #include #include #include #include #include -typedef struct pakfire_jail pakfire_jail; - // Input callback typedef ssize_t (*pakfire_jail_input_callback) (pakfire_ctx* ctx, void* data, char* buffer, size_t length); -- 2.47.3