Fix 32bit-vs-64bit confusion in my_config.h

This commit is contained in:
Tom Lane 2005-12-15 14:20:52 +00:00 committed by Michal Schorm
parent 994e8044f3
commit 59d8e93d3c
2 changed files with 15 additions and 17 deletions

View File

@ -7,24 +7,18 @@
* Note: this may well fail if user tries to use gcc's -I- option.
* But that option is deprecated anyway.
*/
#ifdef __i386__
#include "my_config_i386.h"
#endif
#ifdef __x86_64__
#if defined(__x86_64__)
#include "my_config_x86_64.h"
#endif
#ifdef __ia64__
#elif defined(__ia64__)
#include "my_config_ia64.h"
#endif
#ifdef __ppc__
#include "my_config_ppc.h"
#endif
#ifdef __ppc64__
#elif defined(__i386__)
#include "my_config_i386.h"
#elif defined(__ppc64__)
#include "my_config_ppc64.h"
#endif
#ifdef __s390__
#elif defined(__ppc__)
#include "my_config_ppc.h"
#elif defined(__s390x__)
#include "my_config_s390x.h"
#elif defined(__s390__)
#include "my_config_s390.h"
#endif
#ifdef __s390x__
#include "my_config_s390x.h"
#endif

View File

@ -1,6 +1,6 @@
Name: mysql
Version: 5.0.16
Release: 2
Release: 3
Summary: MySQL client programs and shared libraries.
License: GPL
Group: Applications/Databases
@ -378,6 +378,10 @@ fi
%{_datadir}/sql-bench
%changelog
* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-3
- my_config.h needs to guard against 64-bit platforms that also define the
32-bit symbol
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 5.0.16-2
- oops, looks like we want uname -i not uname -m