Commit 835426ce authored by unknown's avatar unknown

configure.in:

  Temporary work around to pass --build=... to configure
  in storage engine sub directory
print_file.cpp:
  HP-UX compiler don't like variable shadowing
AsyncFile.cpp:
  Cast result from strstr() to char* for HP-UX compile
trigger_definitions.h:
  "MIN" and "MAX" are not used for trigger stuff, move to a more global include
ndb_global.h.in:
  Define "MIN" and "MAX" globally for all NDB, in case the platform does not have it (like Solaris).
  Moved here from "include/kernel/trigger_definitions.h".
Makefile.am:
  Add missing ha_* files to EXTRA_mysqld_SOURCES


sql/Makefile.am:
  Add missing ha_* files to EXTRA_mysqld_SOURCES
storage/ndb/include/ndb_global.h.in:
  Define "MIN" and "MAX" globally for all NDB, in case the platform does not have it (like Solaris).
  Moved here from "include/kernel/trigger_definitions.h".
storage/ndb/include/kernel/trigger_definitions.h:
  "MIN" and "MAX" are not used for trigger stuff, move to a more global include
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp:
  Cast result from strstr() to char* for HP-UX compile
storage/ndb/src/kernel/blocks/print_file.cpp:
  HP-UX compiler don't like variable shadowing
configure.in:
  Temporary work around to pass --build=... to configure
  in storage engine sub directory
parent c3315939
...@@ -2504,7 +2504,7 @@ case $SYSTEM_TYPE in ...@@ -2504,7 +2504,7 @@ case $SYSTEM_TYPE in
esac esac
for CONF in $other_configures; do for CONF in $other_configures; do
(cd `dirname $CONF`; ./`basename $CONF`) (cd `dirname $CONF`; ./`basename $CONF` --build=$build_alias)
done done
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS) AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
......
...@@ -98,9 +98,12 @@ mysqld_SOURCES = sql_lex.cc sql_handler.cc sql_partition.cc \ ...@@ -98,9 +98,12 @@ mysqld_SOURCES = sql_lex.cc sql_handler.cc sql_partition.cc \
sql_plugin.cc\ sql_plugin.cc\
handlerton.cc handlerton.cc
EXTRA_mysqld_SOURCES = ha_innodb.cc ha_berkeley.cc ha_archive.cc \ EXTRA_mysqld_SOURCES = ha_innodb.cc ha_berkeley.cc ha_archive.cc \
ha_innodb.h ha_berkeley.h ha_archive.h \
ha_blackhole.cc ha_federated.cc ha_ndbcluster.cc \ ha_blackhole.cc ha_federated.cc ha_ndbcluster.cc \
ha_partition.cc \ ha_blackhole.h ha_federated.h ha_ndbcluster.h \
examples/ha_tina.cc examples/ha_example.cc ha_partition.cc ha_partition.h \
examples/ha_tina.cc examples/ha_example.cc \
examples/ha_tina.h examples/ha_example.h
mysqld_DEPENDENCIES = @mysql_se_objs@ mysqld_DEPENDENCIES = @mysql_se_objs@
gen_lex_hash_SOURCES = gen_lex_hash.cc gen_lex_hash_SOURCES = gen_lex_hash.cc
gen_lex_hash_LDADD = $(LDADD) $(CXXLDFLAGS) gen_lex_hash_LDADD = $(LDADD) $(CXXLDFLAGS)
......
...@@ -21,14 +21,6 @@ ...@@ -21,14 +21,6 @@
#include "ndb_limits.h" #include "ndb_limits.h"
#include <signaldata/DictTabInfo.hpp> #include <signaldata/DictTabInfo.hpp>
#ifndef MIN
#define MIN(x,y) (((x)<(y))?(x):(y))
#endif
#ifndef MAX
#define MAX(x,y) (((x)>(y))?(x):(y))
#endif
#define ILLEGAL_TRIGGER_ID ((Uint32)(~0)) #define ILLEGAL_TRIGGER_ID ((Uint32)(~0))
struct TriggerType { struct TriggerType {
......
...@@ -137,4 +137,12 @@ extern "C" { ...@@ -137,4 +137,12 @@ extern "C" {
#endif /* SCO */ #endif /* SCO */
#ifndef MIN
#define MIN(x,y) (((x)<(y))?(x):(y))
#endif
#ifndef MAX
#define MAX(x,y) (((x)>(y))?(x):(y))
#endif
#endif #endif
...@@ -983,7 +983,7 @@ void AsyncFile::createDirectories() ...@@ -983,7 +983,7 @@ void AsyncFile::createDirectories()
char* tmp; char* tmp;
const char * name = theFileName.c_str(); const char * name = theFileName.c_str();
const char * base = theFileName.get_base_name(); const char * base = theFileName.get_base_name();
while((tmp = strstr(base, DIR_SEPARATOR))) while((tmp = (char *)strstr(base, DIR_SEPARATOR)))
{ {
char t = tmp[0]; char t = tmp[0];
tmp[0] = 0; tmp[0] = 0;
......
...@@ -83,11 +83,11 @@ int main(int argc, char ** argv) ...@@ -83,11 +83,11 @@ int main(int argc, char ** argv)
} }
Uint32 sz; Uint32 sz;
Uint32 i = 0; Uint32 j = 0;
do { do {
buffer.grow(g_page_size); buffer.grow(g_page_size);
sz = fread(buffer.get_data(), 1, g_page_size, f); sz = fread(buffer.get_data(), 1, g_page_size, f);
if((* g_print_page)(i++, buffer.get_data(), sz)) if((* g_print_page)(j++, buffer.get_data(), sz))
break; break;
} while(sz == g_page_size); } while(sz == g_page_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment