~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: rm
  • Date: 2009-07-26 03:10:33 UTC
  • mto: (1099.1.2 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1101.
  • Revision ID: rm@ralph.local-20090726031033-ajeunv3e198izefa
get things compiling on FreeBSD (7.1)
  - add PTHREAD_LIBS to the necessary execs
  - quell warning about NULL format string in die
  - check for log and log2 funcs, work-around for missing log2
  - add -D option to gperf to avoid warnings/errors about hash collisions
  - remove const from getopt wrappers to avoid errors about discarded qualifiers
  - fix bug in acx_pthread.m4, add pthread ld flags to PTHREAD_LIBS, not
    PTHREAD_CFLAGS
  - wrap #include <alloca.h> in HAVE_ALLOCA_H
  - add lots of UNIV_INTERN attributes to handler func decls
  - include missing header files (net-realted) in a couple places

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include "drizzled/field/timestamp.h"
41
41
#include "drizzled/message/table.pb.h"
42
42
 
 
43
#include <math.h>
 
44
 
43
45
using namespace std;
44
46
 
45
47
extern drizzled::TransactionServices transaction_services;
2957
2959
  return false;
2958
2960
}
2959
2961
 
 
2962
#ifndef HAVE_LOG2
 
2963
#define log2(x)  (log(x) / M_LN2)
 
2964
#endif
2960
2965
 
2961
2966
/*
2962
2967
  Get cost of one sort-and-sweep step