summaryrefslogtreecommitdiffstats
path: root/compiler-rt
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
commitc827f014c3a53d4df44b0564ea067844debc1160 (patch)
treed185d50ada02a10fdd3bb05c5165a73445f7baed /compiler-rt
parent94da1de1cecf21cbcbc47972d5b780d7fdc7c63b (diff)
downloadbcm5719-llvm-c827f014c3a53d4df44b0564ea067844debc1160.tar.gz
bcm5719-llvm-c827f014c3a53d4df44b0564ea067844debc1160.zip
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 llvm-svn: 310182
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_errno.h b/compiler-rt/lib/sanitizer_common/sanitizer_errno.h
index 7872b89c227..6cbbace9f8a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_errno.h
+++ b/compiler-rt/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
OpenPOWER on IntegriCloud