mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip:
Merge a change from MySQL: http://lists.mysql.com/commits/80832 2968 Jonathan Perkin 2009-08-14 Build fixes for Windows, AIX, HP/UX and Sun Studio11, from Timothy Smith. modified: CMakeLists.txt cmd-line-utils/readline/util.c storage/innodb_plugin/handler/i_s.cc storage/innodb_plugin/include/univ.i
This commit is contained in:
parent
018a9efafa
commit
3894dcdae7
2 changed files with 13 additions and 9 deletions
|
@ -70,14 +70,16 @@ do { \
|
|||
#define STRUCT_FLD(name, value) value
|
||||
#endif
|
||||
|
||||
static const ST_FIELD_INFO END_OF_ST_FIELD_INFO =
|
||||
{STRUCT_FLD(field_name, NULL),
|
||||
STRUCT_FLD(field_length, 0),
|
||||
STRUCT_FLD(field_type, MYSQL_TYPE_NULL),
|
||||
STRUCT_FLD(value, 0),
|
||||
STRUCT_FLD(field_flags, 0),
|
||||
STRUCT_FLD(old_name, ""),
|
||||
STRUCT_FLD(open_method, SKIP_OPEN_TABLE)};
|
||||
/* Don't use a static const variable here, as some C++ compilers (notably
|
||||
HPUX aCC: HP ANSI C++ B3910B A.03.65) can't handle it. */
|
||||
#define END_OF_ST_FIELD_INFO \
|
||||
{STRUCT_FLD(field_name, NULL), \
|
||||
STRUCT_FLD(field_length, 0), \
|
||||
STRUCT_FLD(field_type, MYSQL_TYPE_NULL), \
|
||||
STRUCT_FLD(value, 0), \
|
||||
STRUCT_FLD(field_flags, 0), \
|
||||
STRUCT_FLD(old_name, ""), \
|
||||
STRUCT_FLD(open_method, SKIP_OPEN_TABLE)}
|
||||
|
||||
/*
|
||||
Use the following types mapping:
|
||||
|
|
|
@ -411,7 +411,9 @@ it is read. */
|
|||
/* Minimize cache-miss latency by moving data at addr into a cache before
|
||||
it is read or written. */
|
||||
# define UNIV_PREFETCH_RW(addr) __builtin_prefetch(addr, 1, 3)
|
||||
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
/* Sun Studio includes sun_prefetch.h as of version 5.9 */
|
||||
#elif (defined(__SUNPRO_C) && __SUNPRO_C >= 0x590) \
|
||||
|| (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x590)
|
||||
# include <sun_prefetch.h>
|
||||
#if __SUNPRO_C >= 0x550
|
||||
# undef UNIV_INTERN
|
||||
|
|
Loading…
Add table
Reference in a new issue