mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
lots of HAVE_ and some ndb_global fixes for ndb subtree
ndb/include/portlib/NdbTCP.h: introduced ndb_net.h ndb/include/portlib/NdbThread.h: ndb_global ndb/src/common/portlib/unix/NdbCondition.c: Used HAVE_CLOCK_GETTIME ndb/src/common/portlib/unix/NdbMem.c: used HAVE_MLOCKALL ndb/src/common/portlib/unix/NdbSleep.c: ndb_global ndb/src/common/portlib/unix/NdbThread.c: . ndb/src/common/portlib/unix/NdbTick.c: HAVE_CLOCK_GETTIME ndb/src/kernel/vm/Emulator.cpp: ndb_global
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#define NDB_TCP_H
|
||||
|
||||
#include <ndb_global.h>
|
||||
#include <ndb_net.h>
|
||||
|
||||
#if defined NDB_OSE || defined NDB_SOFTOSE
|
||||
/**
|
||||
@ -45,10 +46,6 @@ typedef int socklen_t;
|
||||
/**
|
||||
* Include files needed
|
||||
*/
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <netdb.h>
|
||||
|
||||
#define NDB_NONBLOCK O_NONBLOCK
|
||||
@ -75,12 +72,7 @@ typedef int socklen_t;
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef NDB_MACOSX
|
||||
#define NDB_SOCKLEN_T socklen_t
|
||||
#else
|
||||
#define NDB_SOCKLEN_T int
|
||||
#endif
|
||||
|
||||
#define NDB_SOCKLEN_T SOCKET_SIZE_TYPE
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
Reference in New Issue
Block a user