mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-35513 fails to compile on riscv32
Misplaced brace in my_rdtsc.h results in RV32 failing to compile. ref: https://github.com/MariaDB/server/pull/1981/files#r1859762957 Thanks Jessica Clarke for the note.
This commit is contained in:
parent
8b057889d7
commit
27c7e73f9a
1 changed files with 1 additions and 1 deletions
|
@ -230,8 +230,8 @@ static inline ulonglong my_timer_cycles(void)
|
|||
ulonglong result;
|
||||
__asm __volatile__("rdtime %0" : "=r"(result));
|
||||
return result;
|
||||
}
|
||||
# endif
|
||||
}
|
||||
#elif defined(HAVE_SYS_TIMES_H) && defined(HAVE_GETHRTIME)
|
||||
#define MY_TIMER_ROUTINE_CYCLES MY_TIMER_ROUTINE_GETHRTIME
|
||||
/* gethrtime may appear as either cycle or nanosecond counter */
|
||||
|
|
Loading…
Reference in a new issue