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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a7b07d2b
Commit
a7b07d2b
authored
Jun 26, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix windows build: provide log2 function if the system doesn't have it.
parent
535cfee5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
configure.in
configure.in
+1
-0
sql/mysql_priv.h
sql/mysql_priv.h
+13
-0
No files found.
configure.in
View file @
a7b07d2b
...
@@ -852,6 +852,7 @@ AC_CHECK_HEADERS([xfs/xfs.h])
...
@@ -852,6 +852,7 @@ AC_CHECK_HEADERS([xfs/xfs.h])
#--------------------------------------------------------------------
#--------------------------------------------------------------------
AC_CHECK_LIB
(
m, floor,
[]
, AC_CHECK_LIB
(
m, __infinity
))
AC_CHECK_LIB
(
m, floor,
[]
, AC_CHECK_LIB
(
m, __infinity
))
AC_CHECK_FUNCS
(
log2
)
AC_CHECK_LIB
(
nsl_r, gethostbyname_r,
[]
,
AC_CHECK_LIB
(
nsl_r, gethostbyname_r,
[]
,
AC_CHECK_LIB
(
nsl, gethostbyname_r
))
AC_CHECK_LIB
(
nsl, gethostbyname_r
))
...
...
sql/mysql_priv.h
View file @
a7b07d2b
...
@@ -2567,6 +2567,19 @@ inline bool is_user_table(TABLE * table)
...
@@ -2567,6 +2567,19 @@ inline bool is_user_table(TABLE * table)
return
strncmp
(
name
,
tmp_file_prefix
,
tmp_file_prefix_length
);
return
strncmp
(
name
,
tmp_file_prefix
,
tmp_file_prefix_length
);
}
}
#ifndef HAVE_LOG2
/*
This will be slightly slower and perhaps a tiny bit less accurate than
doing it the IEEE754 way but log2() should be available on C99 systems.
*/
inline
double
log2
(
double
x
)
{
return
(
log
(
x
)
/
M_LN2
);
}
#endif
/*
/*
Some functions that are different in the embedded library and the normal
Some functions that are different in the embedded library and the normal
server
server
...
...
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