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
915063a9
Commit
915063a9
authored
Jan 23, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portability fixes for FreeBSD 8 and 9
parent
10a78616
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
configure.cmake
configure.cmake
+0
-1
include/my_global.h
include/my_global.h
+1
-4
mysys/my_getsystime.c
mysys/my_getsystime.c
+4
-2
storage/xtradb/log/log0recv.c
storage/xtradb/log/log0recv.c
+1
-1
No files found.
configure.cmake
View file @
915063a9
...
...
@@ -238,7 +238,6 @@ CHECK_INCLUDE_FILES (sys/socket.h HAVE_SYS_SOCKET_H)
CHECK_INCLUDE_FILES
(
sys/stat.h HAVE_SYS_STAT_H
)
CHECK_INCLUDE_FILES
(
sys/stream.h HAVE_SYS_STREAM_H
)
CHECK_INCLUDE_FILES
(
sys/termcap.h HAVE_SYS_TERMCAP_H
)
CHECK_INCLUDE_FILES
(
"time.h;sys/timeb.h"
HAVE_SYS_TIMEB_H
)
CHECK_INCLUDE_FILES
(
"curses.h;term.h"
HAVE_TERM_H
)
CHECK_INCLUDE_FILES
(
asm/termbits.h HAVE_ASM_TERMBITS_H
)
CHECK_INCLUDE_FILES
(
termbits.h HAVE_TERMBITS_H
)
...
...
include/my_global.h
View file @
915063a9
...
...
@@ -372,9 +372,6 @@ C_MODE_END
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
/* Avoid warnings on SCO */
#endif
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
...
...
@@ -858,7 +855,7 @@ static inline double my_isinf(double x)
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
)
static
inline
double
log2
(
double
x
)
{
return
(
log
(
x
)
/
M_LN2
);
}
...
...
mysys/my_getsystime.c
View file @
915063a9
...
...
@@ -118,6 +118,7 @@ void my_time_init()
ulonglong
my_getcputime
()
{
#ifdef CLOCK_THREAD_CPUTIME_ID
#ifdef HAVE_CLOCK_GETTIME
struct
timespec
tp
;
if
(
clock_gettime
(
CLOCK_THREAD_CPUTIME_ID
,
&
tp
))
...
...
@@ -128,7 +129,8 @@ ulonglong my_getcputime()
if
(
syscall
(
__NR_clock_gettime
,
CLOCK_THREAD_CPUTIME_ID
,
&
tp
))
return
0
;
return
(
ulonglong
)
tp
.
tv_sec
*
10000000
+
(
ulonglong
)
tp
.
tv_nsec
/
100
;
#else
return
0
;
#endif
/* HAVE_CLOCK_GETTIME */
#else
/* HAVE_THREAD_CPUTIME_ID */
return
0
;
#endif
}
storage/xtradb/log/log0recv.c
View file @
915063a9
...
...
@@ -32,7 +32,7 @@ Created 9/20/1997 Heikki Tuuri
#include "config.h"
#ifdef HAVE_ALLOCA_H
#include "alloca.h"
#el
se
#el
if defined(HAVE_MALLOC_H)
#include "malloc.h"
#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