forked from OSchip/llvm-project
Some OpenBSD patches from Amit Kulkarni.
llvm-svn: 128721
This commit is contained in:
parent
ac4827fe05
commit
2b4d9b7f11
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "lldb/Host/linux/Config.h"
|
||||
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
|
||||
#include "lldb/Host/freebsd/Config.h"
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include <fcntl.h>
|
||||
#include <stdarg.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "lldb/Core/Error.h"
|
||||
#include "lldb/Host/Config.h"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue