Intercept siglongjmp and _longjmp under "#if ASAN_INTERCEPT_*"


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162103 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/dynamic/asan_interceptors_dynamic.cc b/lib/asan/dynamic/asan_interceptors_dynamic.cc
index af2e206..787446d 100644
--- a/lib/asan/dynamic/asan_interceptors_dynamic.cc
+++ b/lib/asan/dynamic/asan_interceptors_dynamic.cc
@@ -47,8 +47,12 @@
   INTERPOSE_FUNCTION(strncpy),
   INTERPOSE_FUNCTION(pthread_create),
   INTERPOSE_FUNCTION(longjmp),
+#if ASAN_INTERCEPT__LONGJMP
   INTERPOSE_FUNCTION(_longjmp),
+#endif
+#if ASAN_INTERCEPT_SIGLONGJMP
   INTERPOSE_FUNCTION(siglongjmp),
+#endif
 #if ASAN_INTERCEPT_STRDUP
   INTERPOSE_FUNCTION(strdup),
 #endif