Some OpenBSD patches from Amit Kulkarni.

llvm-svn: 128721
This commit is contained in:
Greg Clayton 2011-04-01 18:18:34 +00:00
parent ac4827fe05
commit 2b4d9b7f11
3 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,7 @@
#include "lldb/Host/linux/Config.h"
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#include "lldb/Host/freebsd/Config.h"

View File

@ -12,6 +12,7 @@
#include <fcntl.h>
#include <stdarg.h>
#include <sys/stat.h>
#include "lldb/Core/Error.h"
#include "lldb/Host/Config.h"

View File

@ -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)