Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
This commit is contained in:
commit
6f75b81b16
@ -4,7 +4,7 @@ noinst_LTLIBRARIES = libportlib.la
|
|||||||
|
|
||||||
libportlib_la_SOURCES = \
|
libportlib_la_SOURCES = \
|
||||||
NdbCondition.c NdbMutex.c NdbSleep.c NdbTick.c \
|
NdbCondition.c NdbMutex.c NdbSleep.c NdbTick.c \
|
||||||
NdbEnv.c NdbThread.c NdbHost.c NdbTCP.c \
|
NdbEnv.c NdbThread.c NdbHost.c NdbTCP.cpp \
|
||||||
NdbDaemon.c NdbMem.c
|
NdbDaemon.c NdbMem.c
|
||||||
|
|
||||||
include $(top_srcdir)/ndb/config/common.mk.am
|
include $(top_srcdir)/ndb/config/common.mk.am
|
||||||
|
@ -16,14 +16,15 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <NdbMutex.h>
|
#include <NdbMutex.h>
|
||||||
#include "NdbTCP.h"
|
#include <NdbTCP.h>
|
||||||
|
|
||||||
#ifdef NDB_WIN32
|
#if defined NDB_WIN32 || defined SCO
|
||||||
static NdbMutex & LOCK_gethostbyname = * NdbMutex_Create();
|
static NdbMutex & LOCK_gethostbyname = * NdbMutex_Create();
|
||||||
#else
|
#else
|
||||||
static NdbMutex LOCK_gethostbyname = NDB_MUTEX_INITIALIZER;
|
static NdbMutex LOCK_gethostbyname = NDB_MUTEX_INITIALIZER;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern "C"
|
||||||
int
|
int
|
||||||
Ndb_getInAddr(struct in_addr * dst, const char *address) {
|
Ndb_getInAddr(struct in_addr * dst, const char *address) {
|
||||||
struct hostent * hostPtr;
|
struct hostent * hostPtr;
|
@ -43,7 +43,7 @@ static int theNoOfNdbObjects = 0;
|
|||||||
|
|
||||||
static char *ndbConnectString = 0;
|
static char *ndbConnectString = 0;
|
||||||
|
|
||||||
#ifdef NDB_WIN32
|
#if defined NDB_WIN32 || defined SCO
|
||||||
static NdbMutex & createNdbMutex = * NdbMutex_Create();
|
static NdbMutex & createNdbMutex = * NdbMutex_Create();
|
||||||
#else
|
#else
|
||||||
static NdbMutex createNdbMutex = NDB_MUTEX_INITIALIZER;
|
static NdbMutex createNdbMutex = NDB_MUTEX_INITIALIZER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user