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
479bc835
Commit
479bc835
authored
Dec 19, 2008
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Plain Diff
Merge of Solaris/gcc fix
parents
657cdfd7
d359ea1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
sql/mysqld.cc
sql/mysqld.cc
+13
-2
No files found.
sql/mysqld.cc
View file @
479bc835
...
@@ -129,6 +129,16 @@ extern "C" { // Because of SCO 3.2V4.2
...
@@ -129,6 +129,16 @@ extern "C" { // Because of SCO 3.2V4.2
#define SIGNAL_FMT "signal %d"
#define SIGNAL_FMT "signal %d"
#endif
#endif
#ifdef HAVE_SOLARIS_LARGE_PAGES
#include <sys/mman.h>
#if defined(__sun__) && defined(__GNUC__) && defined(__cplusplus) \
&& defined(_XOPEN_SOURCE)
extern
int
getpagesizes
(
size_t
*
,
int
);
extern
int
getpagesizes2
(
size_t
*
,
int
);
extern
int
memcntl
(
caddr_t
,
size_t
,
int
,
caddr_t
,
int
,
int
);
#endif
/* __sun__ ... */
#endif
/* HAVE_SOLARIS_LARGE_PAGES */
#ifdef __NETWARE__
#ifdef __NETWARE__
#define zVOLSTATE_ACTIVE 6
#define zVOLSTATE_ACTIVE 6
#define zVOLSTATE_DEACTIVE 2
#define zVOLSTATE_DEACTIVE 2
...
@@ -3245,10 +3255,11 @@ static int init_common_variables(const char *conf_file_name, int argc,
...
@@ -3245,10 +3255,11 @@ static int init_common_variables(const char *conf_file_name, int argc,
*/
*/
int
nelem
;
int
nelem
;
int
max_desired_page_size
;
int
max_desired_page_size
;
int
max_page_size
;
if
(
opt_super_large_pages
)
if
(
opt_super_large_pages
)
max_page_size
=
SUPER_LARGE_PAGE
_
SIZE
;
max_page_size
=
SUPER_LARGE_PAGESIZE
;
else
else
max_page_size
=
LARGE_PAGE
_
SIZE
;
max_page_size
=
LARGE_PAGESIZE
;
nelem
=
getpagesizes
(
NULL
,
0
);
nelem
=
getpagesizes
(
NULL
,
0
);
if
(
nelem
>
0
)
if
(
nelem
>
0
)
{
{
...
...
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