summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_errno.h
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-08-05 18:10:51 +0000
committerKamil Rytarowski <n54@gmx.com>2017-08-05 18:10:51 +0000
commit41d1b5e1df6c57b85e21d94c59f711f1d6a573ce (patch)
tree527c54426c8d806869a711b774c879e23e21045c /lib/sanitizer_common/sanitizer_errno.h
parente0a4b2e12bbbc4f49bb8c6abdc87a07ab503611f (diff)
Add NetBSD support in sanitizer_errno.h
Summary: NetBSD ships with __errno (value for __errno_location) like Android. Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas. Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, fjricci, kcc, filcab Reviewed By: vitalybuka Subscribers: llvm-commits, srhines, kubamracek, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D36360 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@310182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_errno.h')
-rw-r--r--lib/sanitizer_common/sanitizer_errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_errno.h b/lib/sanitizer_common/sanitizer_errno.h
index 7872b89c2..6cbbace9f 100644
--- a/lib/sanitizer_common/sanitizer_errno.h
+++ b/lib/sanitizer_common/sanitizer_errno.h
@@ -24,7 +24,7 @@
#if SANITIZER_FREEBSD || SANITIZER_MAC
# define __errno_location __error
-#elif SANITIZER_ANDROID
+#elif SANITIZER_ANDROID || SANITIZER_NETBSD
# define __errno_location __errno
#elif SANITIZER_WINDOWS
# define __errno_location _errno