Kaydet (Commit) 81bee24d authored tarafından Michael Stahl's avatar Michael Stahl

libmariadb: make it build with MSVC 2008

... although i'm not sure if the stub implementation of
pthread_cond_timedwait makes that much sense.

Change-Id: If1926e760c0e1b84fd2ac48431c06c6f1ba4dd1d
üst e983759e
...@@ -31,6 +31,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,mariadb,\ ...@@ -31,6 +31,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,mariadb,\
libmariadb/mariadb-swap.patch \ libmariadb/mariadb-swap.patch \
libmariadb/mariadb-trunk-40.patch \ libmariadb/mariadb-trunk-40.patch \
libmariadb/mariadb-static-inline.patch \ libmariadb/mariadb-static-inline.patch \
libmariadb/mariadb-msvc.patch.1 \
)) ))
$(eval $(call gb_UnpackedTarball_fix_end_of_line,mariadb,\ $(eval $(call gb_UnpackedTarball_fix_end_of_line,mariadb,\
......
--- mariadb/libmysql/my_pthread.c.orig 2013-04-17 15:45:52.025896770 +0200
+++ mariadb/libmysql/my_pthread.c 2013-04-17 15:47:32.292895908 +0200
@@ -28,6 +28,10 @@
#ifdef _WIN32
+#ifndef ETIMEDOUT /* does not exist MSVC 2008 but was added in MSVC 2010 */
+#define ETIMEDOUT 145
+#endif
+
int
pthread_cond_init (pthread_cond_t *cv, const pthread_condattr_t *attr)
{
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment