From: Kamalesh Babulal Date: Fri, 1 May 2026 09:44:09 +0000 (+0530) Subject: src/libcgroup-internal: drop dirent/mntent includes X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5629eb4db8cc930c9f38ee3028522fe026969ccf;p=thirdparty%2Flibcgroup.git src/libcgroup-internal: drop dirent/mntent includes src/libcgroup-internal.h includes and , but only uses pointer types in function declarations. Replace the heavy includes with forward declarations: - add struct dirent; - add struct mntent; - remove and from the internal header This trims transitive header dependencies and reduces compile noise, with no functional change. Build tested with: make -j4 Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka (Oracle) --- diff --git a/src/libcgroup-internal.h b/src/libcgroup-internal.h index 209b53d0..cd8c3a25 100644 --- a/src/libcgroup-internal.h +++ b/src/libcgroup-internal.h @@ -18,15 +18,16 @@ extern "C" { #include #include -#include #include -#include #include #include #include #include +struct dirent; +struct mntent; + #define MAX_MNT_ELEMENTS 17 /* Maximum number of mount points/controllers */ #define MAX_GROUP_ELEMENTS 128 /* Estimated number of groups created */