Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0422d559
Commit
0422d559
authored
May 13, 2004
by
tomas@mc05.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into mc05.(none):/space/tomas/mysql-4.1-ndb
parents
ca4f6d3c
8e84ee65
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
ndb/Defs.mk
ndb/Defs.mk
+0
-1
ndb/include/ndb_types.h
ndb/include/ndb_types.h
+8
-2
ndb/src/common/portlib/unix/NdbMem.c
ndb/src/common/portlib/unix/NdbMem.c
+6
-6
No files found.
ndb/Defs.mk
View file @
0422d559
...
@@ -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
...
...
ndb/include/ndb_types.h
View file @
0422d559
...
@@ -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
...
...
ndb/src/common/portlib/unix/NdbMem.c
View file @
0422d559
...
@@ -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
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment