diff options
-rw-r--r-- | lldb/include/lldb/Host/Config.h | 2 | ||||
-rw-r--r-- | lldb/source/Host/common/File.cpp | 1 | ||||
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/lldb/include/lldb/Host/Config.h b/lldb/include/lldb/Host/Config.h index ae508b18c3d..60027fb53df 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 09011272238..5a97bc98702 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -12,6 +12,7 @@ #include <fcntl.h> #include <stdarg.h> +#include <sys/stat.h> #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 ea50cb9a2eb..d83b182e618 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) |