diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-20 14:44:29 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-20 14:44:29 -0300 |
commit | c36fee08f6fa7974324438572a260101335cb4b4 (patch) | |
tree | 5cd22b1feaf7fd5459966139762af314803cdb12 /include/mysql.h.pp | |
parent | b0035c76d46caf25d6b52f4e1552c1e83f7f0911 (diff) | |
download | mariadb-git-c36fee08f6fa7974324438572a260101335cb4b4.tar.gz |
Bug#52514: mysql 5.1 do_abi_check does not compile w/ gcc4.5
due to GCC preprocessor change
The problem is that newer GCC versions treats missing headers
as fatal errors. The solution is to use a guard macro to prevent
the inclusion of system headers when checking the ABI with the
C Preprocessor.
Reference: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15638
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44836
Makefile.am:
Define guard macro.
configure.in:
Remove workaround.
include/mysql.h:
Guard the header inclusion.
include/mysql.h.pp:
Header is not included anymore.
Diffstat (limited to 'include/mysql.h.pp')
-rw-r--r-- | include/mysql.h.pp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mysql.h.pp b/include/mysql.h.pp index 633cde41130..0a397863022 100644 --- a/include/mysql.h.pp +++ b/include/mysql.h.pp @@ -1,4 +1,3 @@ -#include <sys/types.h> typedef char my_bool; typedef int my_socket; #include "mysql_version.h" |