diff options
author | Rui Ueyama <ruiu@google.com> | 2014-10-27 07:37:57 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-10-27 07:37:57 +0000 |
commit | baa8acd546e077b0d5a2ae977a17aba9fd8a0f86 (patch) | |
tree | 97fb38967d8aca1eedd9a01ad2c9dd196257a208 /autoconf/configure.ac | |
parent | fe58be3733715dd30807e9aaa31500be456ecf53 (diff) |
Include stddef.h before including cxxabi.h
On FreeBSD 10.0, size_t needs to be defined before including cxxabi.h.
Currenty HAVE_CXXABI_H is not defined on FreeBSD because of that reason.
This patch teaches cmake and configure how to include it.
http://reviews.llvm.org/D5940
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index a198280f23d..618cf8b4db6 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1592,8 +1592,12 @@ AC_HEADER_SYS_WAIT AC_HEADER_TIME AC_LANG_PUSH([C++]) -AC_CHECK_HEADERS([cxxabi.h]) +dnl size_t must be defined before including cxxabi.h on FreeBSD 10.0. +AC_CHECK_HEADERS([cxxabi.h], [], [], +[#include <stddef.h> +]) AC_LANG_POP([C++]) + AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h link.h]) AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h]) AC_CHECK_HEADERS([utime.h]) |