mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 13:47:32 +00:00
Fix ASan alloca_constant_size.cc test on FreeBSD.
On FreeBSD <alloca.h> does not exist: alloca(3) is defined in <stdlib.h> instead. llvm-svn: 277300
This commit is contained in:
parent
6be48e4aa7
commit
41d9b3640c
@ -10,6 +10,8 @@
|
||||
// MSVC provides _alloca instead of alloca.
|
||||
#if defined(_MSC_VER) && !defined(alloca)
|
||||
# define alloca _alloca
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user