summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/safestack/safestack.cc
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-08-10 18:40:09 +0000
committerKamil Rytarowski <n54@gmx.com>2017-08-10 18:40:09 +0000
commitfbd51b954da5626d8aec17cfaa38bfa66600628a (patch)
treee830281cf914d9b53d4dcc8c03f513349ef94b86 /compiler-rt/lib/safestack/safestack.cc
parentac2e50a4ca22fc9b4b17774b8316df83952619d4 (diff)
downloadbcm5719-llvm-fbd51b954da5626d8aec17cfaa38bfa66600628a.tar.gz
bcm5719-llvm-fbd51b954da5626d8aec17cfaa38bfa66600628a.zip
Enable SafeStack on NetBSD
Summary: make check-safestack: -- Testing: 8 tests, 8 threads -- Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 0.44s Expected Passes : 7 Unsupported Tests : 1 Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, kcc, fjricci, filcab Reviewed By: vitalybuka Subscribers: mgorny, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D36542 llvm-svn: 310646
Diffstat (limited to 'compiler-rt/lib/safestack/safestack.cc')
-rw-r--r--compiler-rt/lib/safestack/safestack.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/safestack/safestack.cc b/compiler-rt/lib/safestack/safestack.cc
index b194b6cfa8f..d783cd5a9b2 100644
--- a/compiler-rt/lib/safestack/safestack.cc
+++ b/compiler-rt/lib/safestack/safestack.cc
@@ -21,7 +21,9 @@
#include <unistd.h>
#include <sys/resource.h>
#include <sys/types.h>
+#if !defined(__NetBSD__)
#include <sys/user.h>
+#endif
#include "interception/interception.h"
#include "sanitizer_common/sanitizer_common.h"
OpenPOWER on IntegriCloud