mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 17:25:31 +02:00
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.
This commit is contained in:
parent
b0035c76d4
commit
c36fee08f6
4 changed files with 4 additions and 12 deletions
|
|
@ -1,4 +1,3 @@
|
|||
#include <sys/types.h>
|
||||
typedef char my_bool;
|
||||
typedef int my_socket;
|
||||
#include "mysql_version.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue