Index: lib/sanitizer_common/sanitizer_procmaps.h =================================================================== --- lib/sanitizer_common/sanitizer_procmaps.h +++ lib/sanitizer_common/sanitizer_procmaps.h @@ -20,7 +20,7 @@ namespace __sanitizer { -#if SANITIZER_FREEBSD || SANITIZER_LINUX +#if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD struct ProcSelfMapsBuff { char *data; uptr mmaped_size; @@ -29,7 +29,7 @@ // Reads process memory map in an OS-specific way. void ReadProcMaps(ProcSelfMapsBuff *proc_maps); -#endif // SANITIZER_FREEBSD || SANITIZER_LINUX +#endif // SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD // Memory protection masks. static const uptr kProtectionRead = 1; @@ -76,7 +76,7 @@ // FIXME: Hide implementation details for different platforms in // platform-specific files. -# if SANITIZER_FREEBSD || SANITIZER_LINUX +# if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD ProcSelfMapsBuff proc_self_maps_; const char *current_;