On Thu, 26 Mar 2026 at 16:02, Kostiantyn Kostiuk <kkostiuk@redhat.com> wrote:
>
> Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
> ---
> util/drm.c | 1 -
> util/path.c | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/util/drm.c b/util/drm.c
> index dae8ffebc8..afa9c400df 100644
> --- a/util/drm.c
> +++ b/util/drm.c
> @@ -18,7 +18,6 @@
> #include "qemu/drm.h"
>
> #include <glob.h>
> -#include <dirent.h>
>
> int qemu_drm_rendernode_open(const char *rendernode)
> {
This file uses opendir()/readdir()/closedir(), all of which
are specified to be brought in by <dirent.h>, so we can't
drop this include.
> diff --git a/util/path.c b/util/path.c
> index 8e174eb436..72a255890e 100644
> --- a/util/path.c
> +++ b/util/path.c
> @@ -5,7 +5,6 @@
> */
> #include "qemu/osdep.h"
> #include <sys/param.h>
> -#include <dirent.h>
> #include "qemu/cutils.h"
> #include "qemu/path.h"
> #include "qemu/thread.h"
This one is OK to drop, because the rewrite of path.c in
commit f3a8bdc1d5b26 removed the uses of the dirent.h functions.
thanks
-- PMM