[PATCH] [Sanitizers] Fix sanitizers to build on FreeBSD.

Dmitry Vyukov dvyukov at google.com
Tue Mar 10 00:46:00 PDT 2015


================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:63
@@ -62,2 +62,3 @@
 #if SANITIZER_FREEBSD
+#include <ucontext.h>
 #include <sys/sysctl.h>
----------------
Shouldn't it be included on linux as well?
I guess it is included by some other header on linux, but it is not a reason to not include it explicitly if we use it.

http://reviews.llvm.org/D8175

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list