mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Fixes for compiling distribution with MIT-threads
client/mysql.cc: Fixes for MIT-pthreads libmysqld/examples/Makefile.am: Fixes for MIT-pthreads mit-pthreads/machdep/linux-2.0/__string.h: Fixes for MIT-pthreads mysys/my_thr_init.c: Fixed spelling error.
This commit is contained in:
parent
8d1568b882
commit
2e20fc9a2c
4 changed files with 6 additions and 6 deletions
|
|
@ -1491,7 +1491,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
|
|||
|
||||
static void init_pager()
|
||||
{
|
||||
#if !defined( __WIN__) && !defined( OS2)
|
||||
#if !defined( __WIN__) && !defined( OS2) && (!defined(HAVE_mit_thread) && defined(THREAD))
|
||||
if (!opt_nopager)
|
||||
{
|
||||
if (!(PAGER= popen(pager, "w")))
|
||||
|
|
@ -1507,7 +1507,7 @@ static void init_pager()
|
|||
|
||||
static void end_pager()
|
||||
{
|
||||
#if !defined( __WIN__) && !defined( OS2)
|
||||
#if !defined( __WIN__) && !defined( OS2) && (!defined(HAVE_mit_thread) && defined(THREAD))
|
||||
if (!opt_nopager)
|
||||
pclose(PAGER);
|
||||
#endif
|
||||
|
|
@ -2498,9 +2498,11 @@ void tee_putc(int c, FILE *file)
|
|||
#include <time.h>
|
||||
#else
|
||||
#include <sys/times.h>
|
||||
#ifdef _SC_CLK_TCK // For mit-pthreads
|
||||
#undef CLOCKS_PER_SEC
|
||||
#define CLOCKS_PER_SEC (sysconf(_SC_CLK_TCK))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static ulong start_timer(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue