mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
Patch to get MariaDB to compile on CYGWIN; By Guenter Knauf
Increased number of locks in thr_lock (used only when testing) include/my_global.h: Patch for CYGWIN mysys/my_getsystime.c: Patch for CYGWIN mysys/thr_lock.c: Increase number of locks for testing
This commit is contained in:
@@ -39,6 +39,8 @@
|
|||||||
#undef __WIN__
|
#undef __WIN__
|
||||||
#undef __WIN32__
|
#undef __WIN32__
|
||||||
#define HAVE_ERRNO_AS_DEFINE
|
#define HAVE_ERRNO_AS_DEFINE
|
||||||
|
#define _POSIX_MONOTONIC_CLOCK
|
||||||
|
#define _POSIX_THREAD_CPUTIME
|
||||||
#endif /* __CYGWIN__ */
|
#endif /* __CYGWIN__ */
|
||||||
|
|
||||||
#if defined(__QNXNTO__) && !defined(FD_SETSIZE)
|
#if defined(__QNXNTO__) && !defined(FD_SETSIZE)
|
||||||
|
@@ -28,6 +28,11 @@ static ulonglong query_performance_frequency;
|
|||||||
#include <linux/unistd.h>
|
#include <linux/unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* For CYGWIN */
|
||||||
|
#if !defined(CLOCK_THREAD_CPUTIME_ID) && defined(CLOCK_THREAD_CPUTIME)
|
||||||
|
#define CLOCK_THREAD_CPUTIME_ID CLOCK_THREAD_CPUTIME
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
return number of nanoseconds since unspecified (but always the same)
|
return number of nanoseconds since unspecified (but always the same)
|
||||||
point in the past
|
point in the past
|
||||||
|
@@ -98,8 +98,8 @@ ulong table_lock_wait_timeout;
|
|||||||
enum thr_lock_type thr_upgraded_concurrent_insert_lock = TL_WRITE;
|
enum thr_lock_type thr_upgraded_concurrent_insert_lock = TL_WRITE;
|
||||||
|
|
||||||
/* The following constants are only for debug output */
|
/* The following constants are only for debug output */
|
||||||
#define MAX_THREADS 100
|
#define MAX_THREADS 1000
|
||||||
#define MAX_LOCKS 100
|
#define MAX_LOCKS 1000
|
||||||
|
|
||||||
|
|
||||||
LIST *thr_lock_thread_list; /* List of threads in use */
|
LIST *thr_lock_thread_list; /* List of threads in use */
|
||||||
|
Reference in New Issue
Block a user