mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
SCO unix compile fix
ndb/src/common/portlib/Makefile.am: Rename from .c to .cpp as c++ features needed ndb/src/common/portlib/NdbTCP.cpp: NDB_MUTEX_INITIALIZER isn't preset on SCO unix ndb/src/ndbapi/Ndbinit.cpp: NDB_MUTEX_INITIALIZER isn't preset on SCO unix
This commit is contained in:
parent
28ae9fcbff
commit
b1a91d21ea
3 changed files with 5 additions and 4 deletions
|
@ -4,7 +4,7 @@ noinst_LTLIBRARIES = libportlib.la
|
|||
|
||||
libportlib_la_SOURCES = \
|
||||
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
|
||||
|
||||
include $(top_srcdir)/ndb/config/common.mk.am
|
||||
|
|
|
@ -16,14 +16,15 @@
|
|||
|
||||
|
||||
#include <NdbMutex.h>
|
||||
#include "NdbTCP.h"
|
||||
#include <NdbTCP.h>
|
||||
|
||||
#ifdef NDB_WIN32
|
||||
#if defined NDB_WIN32 || defined SCO
|
||||
static NdbMutex & LOCK_gethostbyname = * NdbMutex_Create();
|
||||
#else
|
||||
static NdbMutex LOCK_gethostbyname = NDB_MUTEX_INITIALIZER;
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
int
|
||||
Ndb_getInAddr(struct in_addr * dst, const char *address) {
|
||||
struct hostent * hostPtr;
|
|
@ -43,7 +43,7 @@ static int theNoOfNdbObjects = 0;
|
|||
|
||||
static char *ndbConnectString = 0;
|
||||
|
||||
#ifdef NDB_WIN32
|
||||
#if defined NDB_WIN32 || defined SCO
|
||||
static NdbMutex & createNdbMutex = * NdbMutex_Create();
|
||||
#else
|
||||
static NdbMutex createNdbMutex = NDB_MUTEX_INITIALIZER;
|
||||
|
|
Loading…
Reference in a new issue