diff options
author | Michael Widenius <monty@askmonty.org> | 2011-12-02 00:24:58 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-12-02 00:24:58 +0200 |
commit | ffab2a90dcf6aec84d95d5de24c55fc536c96968 (patch) | |
tree | 9299048b175a9fdfb9f34fc982f395318439e46c /mysys/my_getsystime.c | |
parent | 2f9734172f2552c6fdb0483e33423a92acd9285b (diff) | |
download | mariadb-git-ffab2a90dcf6aec84d95d5de24c55fc536c96968.tar.gz |
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
Diffstat (limited to 'mysys/my_getsystime.c')
-rw-r--r-- | mysys/my_getsystime.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysys/my_getsystime.c b/mysys/my_getsystime.c index cb063e27c1f..268619a1334 100644 --- a/mysys/my_getsystime.c +++ b/mysys/my_getsystime.c @@ -28,6 +28,11 @@ static ulonglong query_performance_frequency; #include <linux/unistd.h> #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) point in the past |