From cdf1a94e29da9563ebdd067b65746c628bd87443 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 4 Oct 2022 16:59:55 +0200 Subject: [PATCH] ifdef DT_WHT --- src/wutil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wutil.cpp b/src/wutil.cpp index d24aba3d0..d617c5c00 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -76,8 +76,11 @@ static maybe_t dirent_type_to_entry_type(uint8_t dt) { return dir_entry_type_t::lnk; case DT_SOCK: return dir_entry_type_t::sock; +#if defined(DT_WHT) + // OpenBSD doesn't have this one case DT_WHT: return dir_entry_type_t::whiteout; +#endif case DT_UNKNOWN: default: return none();