]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
src/libcgroup-internal: drop dirent/mntent includes main
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 1 May 2026 09:44:09 +0000 (15:14 +0530)
committerTom Hromatka (Oracle) <tom.hromatka@gmail.com>
Thu, 14 May 2026 18:17:16 +0000 (12:17 -0600)
commit5629eb4db8cc930c9f38ee3028522fe026969ccf
tree12c42cc95d548579cc2081bf746349c620e05e1b
parentd5d616bd1ce8ebb87f76805889d1693bae2a0440
src/libcgroup-internal: drop dirent/mntent includes

src/libcgroup-internal.h includes <dirent.h> and <mntent.h>, but only
uses pointer types in function declarations.

Replace the heavy includes with forward declarations:
- add struct dirent;
- add struct mntent;
- remove <dirent.h> and <mntent.h> 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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka (Oracle) <tom.hromatka@gmail.com>
src/libcgroup-internal.h