builtins: Fix the sysroot's reference to si_int in int_types.h

si_int is already defined in sysroot's siginfo.h
emutls.c includes pthread.h which includes asm/siginfo.h which
in turn includes asm-generic/siginfo.h and that defines si_int.
si_int is also defined in builtin's int_types.h and this leads to
errors. This patch fixes the issue by undefining the si_int in int_types.h

Differential Revision: http://reviews.llvm.org/D15086

llvm-svn: 254472
This commit is contained in:
Sumanth Gundapaneni 2015-12-01 23:06:23 +00:00
parent d8828fcff0
commit c1c674c60b
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
#include "int_endianness.h"
/* si_int is defined in Linux sysroot's asm-generic/siginfo.h */
#ifdef si_int
#undef si_int
#endif
typedef int si_int;
typedef unsigned su_int;