Commit 41b0444c authored by unknown's avatar unknown

hpux compile fixes

parent 6c2e1614
...@@ -378,7 +378,7 @@ then ...@@ -378,7 +378,7 @@ then
# mysqld doesn't use run-time-type-checking, so we disable it. # mysqld doesn't use run-time-type-checking, so we disable it.
CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti" CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti"
# ndb cannot be compiled with -fno-implicit-templaces # ndb cannot be compiled with -fno-implicit-templaces
ndb_cxxflags_fix=-fimplicit-templates ndb_cxxflags_fix="$ndb_cxxflags_fix -fimplicit-templates"
# If you are using 'gcc' 3.0 (not g++) to compile C++ programs on Linux, # If you are using 'gcc' 3.0 (not g++) to compile C++ programs on Linux,
# we will gets some problems when linking static programs. # we will gets some problems when linking static programs.
...@@ -1032,6 +1032,7 @@ case $SYSTEM_TYPE in ...@@ -1032,6 +1032,7 @@ case $SYSTEM_TYPE in
CXXFLAGS="$CXXFLAGS +O2" CXXFLAGS="$CXXFLAGS +O2"
MAX_C_OPTIMIZE="" MAX_C_OPTIMIZE=""
MAX_CXX_OPTIMIZE="" MAX_CXX_OPTIMIZE=""
ndb_cxxflags_fix="$ndb_cxxflags_fix -Aa"
fi fi
;; ;;
*rhapsody*) *rhapsody*)
......
...@@ -25,7 +25,13 @@ ...@@ -25,7 +25,13 @@
#endif #endif
#include <sys/param.h> #include <sys/param.h>
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #if defined(__cplusplus) && defined(_APP32_64BIT_OFF_T) && defined(_INCLUDE_AES_SOURCE)
#undef _INCLUDE_AES_SOURCE
#include <sys/stat.h>
#define _INCLUDE_AES_SOURCE
#else
#include <sys/stat.h>
#endif
#endif #endif
#include <sys/resource.h> #include <sys/resource.h>
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
......
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