mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
ifdef DT_WHT
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user