diff options
author | Joerg Bruehe <joerg@mysql.com> | 2009-09-09 15:21:27 +0200 |
---|---|---|
committer | Joerg Bruehe <joerg@mysql.com> | 2009-09-09 15:21:27 +0200 |
commit | 55eb4962c2e58d322a02c32ea322e69c49f5ae6a (patch) | |
tree | ad1cf89b2f44e1ab461012e3bac241dbba2e8f03 /storage/innobase | |
parent | 905d715f10e711860311e0a10488c6bb5e19ee49 (diff) | |
parent | 36703050e8e5ef12dde3440864bc84cc0099944d (diff) | |
download | mariadb-git-55eb4962c2e58d322a02c32ea322e69c49f5ae6a.tar.gz |
Merge the changes done for 5.4.2-beta into "trunk".
Diffstat (limited to 'storage/innobase')
-rw-r--r-- | storage/innobase/handler/i_s.cc | 18 | ||||
-rw-r--r-- | storage/innobase/include/univ.i | 3 |
2 files changed, 12 insertions, 9 deletions
diff --git a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc index c0d488d1c49..524fe696de2 100644 --- a/storage/innobase/handler/i_s.cc +++ b/storage/innobase/handler/i_s.cc @@ -69,14 +69,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: diff --git a/storage/innobase/include/univ.i b/storage/innobase/include/univ.i index 6bce6dd765e..023a6c9cd89 100644 --- a/storage/innobase/include/univ.i +++ b/storage/innobase/include/univ.i @@ -408,7 +408,8 @@ 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 |