Commit 8e84ee65 authored by tomas@mc05.(none)'s avatar tomas@mc05.(none)

Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb

into mc05.(none):/space2/tomas/mysql-4.1
parents e5ccb1cc d7958e9b
...@@ -40,7 +40,6 @@ SHLIBEXT := sl ...@@ -40,7 +40,6 @@ SHLIBEXT := sl
endif endif
ifeq ($(NDB_OS), MACOSX) ifeq ($(NDB_OS), MACOSX)
CCFLAGS_TOP += -DNDBOUT_UINTPTR
SHLIBEXT := dylib SHLIBEXT := dylib
endif endif
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
* @file ndb_types.h * @file ndb_types.h
*/ */
#ifndef SYS_TYPES_H #ifndef NDB_TYPES_H
#define SYS_TYPES_H #define NDB_TYPES_H
typedef char Int8; typedef char Int8;
typedef unsigned char Uint8; typedef unsigned char Uint8;
...@@ -33,7 +33,13 @@ typedef unsigned int UintR; ...@@ -33,7 +33,13 @@ typedef unsigned int UintR;
#ifdef __SIZE_TYPE__ #ifdef __SIZE_TYPE__
typedef __SIZE_TYPE__ UintPtr; typedef __SIZE_TYPE__ UintPtr;
#else #else
#include <my_config.h>
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
typedef uintptr_t UintPtr; typedef uintptr_t UintPtr;
#endif #endif
......
...@@ -54,18 +54,18 @@ void NdbMem_Free(void* ptr) ...@@ -54,18 +54,18 @@ void NdbMem_Free(void* ptr)
int NdbMem_MemLockAll(){ int NdbMem_MemLockAll(){
#ifndef HAVE_MLOCKALL #if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
return -1;
#else
return mlockall(MCL_CURRENT); return mlockall(MCL_CURRENT);
#else
return -1;
#endif #endif
} }
int NdbMem_MemUnlockAll(){ int NdbMem_MemUnlockAll(){
#ifndef HAVE_MLOCKALL #if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
return -1;
#else
return munlockall(); return munlockall();
#else
return -1;
#endif #endif
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment