From 151917ce51910a9e3fef1db8840a2121961eac28 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 5 Jun 2025 20:03:24 +0300 Subject: [PATCH] mu-maildir.cc: fix typo Use the right #define in the dirent check. Seems we were always following the slow path. --- lib/mu-maildir.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/mu-maildir.cc b/lib/mu-maildir.cc index 5eef69e5..53152e59 100644 --- a/lib/mu-maildir.cc +++ b/lib/mu-maildir.cc @@ -1,5 +1,5 @@ /* -** Copyright (C) 2008-2023 Dirk-Jan C. Binnema +** Copyright (C) 2008-2025 Dirk-Jan C. Binnema ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of the GNU General Public License as published by the @@ -32,7 +32,6 @@ #include #include -#include "glibconfig.h" #include "mu-maildir.hh" #include "utils/mu-utils.hh" #include "utils/mu-utils-file.hh" @@ -51,7 +50,7 @@ using namespace Mu; static unsigned char get_dtype(struct dirent* dentry, const std::string& path, bool use_lstat) { -#ifdef HAVE_STRUCT_DIRENT_D_TYPE +#ifdef HAVE_DIRENT_D_TYPE if (dentry->d_type == DT_UNKNOWN) goto slowpath; @@ -61,7 +60,7 @@ get_dtype(struct dirent* dentry, const std::string& path, bool use_lstat) return dentry->d_type; /* fastpath */ slowpath: -#endif /*HAVE_STRUCT_DIRENT_D_TYPE*/ +#endif /*HAVE_DIRENT_D_TYPE*/ return determine_dtype(path, use_lstat); }