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
8e84ee65
Commit
8e84ee65
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):/space2/tomas/mysql-4.1
parents
e5ccb1cc
d7958e9b
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 @
8e84ee65
...
...
@@ -40,7 +40,6 @@ SHLIBEXT := sl
endif
ifeq
($(NDB_OS), MACOSX)
CCFLAGS_TOP
+=
-DNDBOUT_UINTPTR
SHLIBEXT
:=
dylib
endif
...
...
ndb/include/ndb_types.h
View file @
8e84ee65
...
...
@@ -18,8 +18,8 @@
* @file ndb_types.h
*/
#ifndef
SYS
_TYPES_H
#define
SYS
_TYPES_H
#ifndef
NDB
_TYPES_H
#define
NDB
_TYPES_H
typedef
char
Int8
;
typedef
unsigned
char
Uint8
;
...
...
@@ -33,7 +33,13 @@ typedef unsigned int UintR;
#ifdef __SIZE_TYPE__
typedef
__SIZE_TYPE__
UintPtr
;
#else
#include <my_config.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
typedef
uintptr_t
UintPtr
;
#endif
...
...
ndb/src/common/portlib/unix/NdbMem.c
View file @
8e84ee65
...
...
@@ -54,18 +54,18 @@ void NdbMem_Free(void* ptr)
int
NdbMem_MemLockAll
(){
#ifndef HAVE_MLOCKALL
return
-
1
;
#else
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
return
mlockall
(
MCL_CURRENT
);
#else
return
-
1
;
#endif
}
int
NdbMem_MemUnlockAll
(){
#ifndef HAVE_MLOCKALL
return
-
1
;
#else
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
return
munlockall
();
#else
return
-
1
;
#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