~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/check_stack_overrun.cc

  • Committer: Stewart Smith
  • Date: 2009-08-20 17:15:54 UTC
  • mto: (1119.2.2 merge)
  • mto: This revision was merged to the branch mainline in revision 1124.
  • Revision ID: stewart@flamingspork.com-20090820171554-72eo1tqlc4n64rak
Valgrind 3.5 requires --alignment to be a power of 2 between 16 and 4096. The specifying --alignment is not important for us, so remove it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
21
 
#include "drizzled/internal/my_sys.h"
 
20
#include <drizzled/global.h>
 
21
#include <mysys/my_sys.h>
22
22
#include <drizzled/definitions.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/error.h>
25
25
#include <drizzled/check_stack_overrun.h>
26
26
 
27
 
namespace drizzled
28
 
{
29
 
 
30
27
/****************************************************************************
31
28
        Check stack size; Send error if there isn't enough stack to continue
32
29
****************************************************************************/
33
 
#if defined(STACK_DIRECTION) && (STACK_DIRECTION < 0)
 
30
#if STACK_DIRECTION < 0
34
31
#define used_stack(A,B) (long) (A - B)
35
32
#else
36
33
#define used_stack(A,B) (long) (B - A)
52
49
  }
53
50
  return false;
54
51
}
55
 
 
56
 
} /* namespace drizzled */