forked from OSchip/llvm-project
Include setjmp.h unconditionally in asan_test_utils.h
It's used in asan_test.cc also on Windows, and my build was failing with: C:/src/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:549:28: error: unknown type name 'jmp_buf' NOINLINE void LongJmpFunc1(jmp_buf buf) { ^ C:/src/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:569:10: error: unknown type name 'jmp_buf' static jmp_buf buf; ^ I couldn't find what changed to make this not work anymore, but this should fix it. llvm-svn: 303273
This commit is contained in:
parent
0daa7074bf
commit
4035ec59bf
|
@ -30,11 +30,11 @@
|
|||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <algorithm>
|
||||
#include <setjmp.h>
|
||||
|
||||
#if !defined(_WIN32)
|
||||
# include <strings.h>
|
||||
# include <sys/mman.h>
|
||||
# include <setjmp.h>
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
|
|
Loading…
Reference in New Issue