ifdef DT_WHT

This commit is contained in:
Fabian Boehm 2022-10-04 16:59:55 +02:00
parent cdfa76221e
commit cdf1a94e29

View file

@ -76,8 +76,11 @@ static maybe_t<dir_entry_type_t> dirent_type_to_entry_type(uint8_t dt) {
return dir_entry_type_t::lnk; return dir_entry_type_t::lnk;
case DT_SOCK: case DT_SOCK:
return dir_entry_type_t::sock; return dir_entry_type_t::sock;
#if defined(DT_WHT)
// OpenBSD doesn't have this one
case DT_WHT: case DT_WHT:
return dir_entry_type_t::whiteout; return dir_entry_type_t::whiteout;
#endif
case DT_UNKNOWN: case DT_UNKNOWN:
default: default:
return none(); return none();