~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_lock.c

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
#include "mysys_priv.h"
74
74
 
75
75
#include "thr_lock.h"
76
 
#include <m_string.h>
 
76
#include <mystrings/m_string.h>
77
77
#include <errno.h>
78
78
 
79
79
bool thr_lock_inited=0;
299
299
 
300
300
void thr_lock_init(THR_LOCK *lock)
301
301
{
302
 
  bzero((char*) lock,sizeof(*lock));
 
302
  memset((char*) lock, 0, sizeof(*lock));
303
303
  VOID(pthread_mutex_init(&lock->mutex,MY_MUTEX_INIT_FAST));
304
304
  lock->read.last= &lock->read.data;
305
305
  lock->read_wait.last= &lock->read_wait.data;