diff --git a/lldb/include/lldb/Host/Config.h b/lldb/include/lldb/Host/Config.h index ae508b18c3d0..60027fb53dfc 100644 --- a/lldb/include/lldb/Host/Config.h +++ b/lldb/include/lldb/Host/Config.h @@ -18,7 +18,7 @@ #include "lldb/Host/linux/Config.h" -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__OpenBSD__) #include "lldb/Host/freebsd/Config.h" diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 090112722385..5a97bc987027 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -12,6 +12,7 @@ #include #include +#include #include "lldb/Core/Error.h" #include "lldb/Host/Config.h" diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index ea50cb9a2eb9..d83b182e618a 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -904,7 +904,9 @@ FileSpec::EnumerateDirectory case DT_REG: file_type = eFileTypeRegular; call_callback = find_files; break; case DT_LNK: file_type = eFileTypeSymbolicLink; call_callback = find_other; break; case DT_SOCK: file_type = eFileTypeSocket; call_callback = find_other; break; +#if !defined(__OpenBSD__) case DT_WHT: file_type = eFileTypeOther; call_callback = find_other; break; +#endif } if (call_callback)