[FreeBSD] Enable procmaps on FreeBSD.

This is not the final patch for procmaps, but it's enough for building
sanitizers and tests on FreeBSD.

Patch by Viktor Kutuzov!

llvm-svn: 203099
This commit is contained in:
Alexey Samsonov 2014-03-06 08:58:24 +00:00
parent f7c1b16591
commit d52b9ba38d
1 changed files with 3 additions and 3 deletions

View File

@ -20,13 +20,13 @@
namespace __sanitizer {
#if SANITIZER_LINUX
#if SANITIZER_FREEBSD || SANITIZER_LINUX
struct ProcSelfMapsBuff {
char *data;
uptr mmaped_size;
uptr len;
};
#endif // SANITIZER_LINUX
#endif // SANITIZER_FREEBSD || SANITIZER_LINUX
class MemoryMappingLayout {
public:
@ -55,7 +55,7 @@ class MemoryMappingLayout {
// FIXME: Hide implementation details for different platforms in
// platform-specific files.
# if SANITIZER_LINUX
# if SANITIZER_FREEBSD || SANITIZER_LINUX
ProcSelfMapsBuff proc_self_maps_;
char *current_;