summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h7
-rw-r--r--include/my_pthread.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 2ad8a870048..c13b79cbc1f 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -150,6 +150,13 @@
#define __LONG_MAX__ 2147483647
#endif
+/* Fix problem when linking c++ programs with gcc 3.x */
+#ifdef DEFINE_CXA_PURE_VIRTUAL
+#define FIX_GCC_LINKING_PROBLEM extern "C" { int __cxa_pure_virtual() {} }
+#else
+#define FIX_GCC_LINKING_PROBLEM
+#endif
+
/* egcs 1.1.2 has a problem with memcpy on Alpha */
#if defined(__GNUC__) && defined(__alpha__) && ! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
#define BAD_MEMCPY
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 7e975a8185d..d1d507c06cf 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -429,6 +429,7 @@ struct tm *localtime_r(const time_t *clock, struct tm *res);
#endif /* defined(__WIN__) */
#if defined(HPUX) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
+#undef pthread_cond_timedwait
#define pthread_cond_timedwait(a,b,c) my_pthread_cond_timedwait((a),(b),(c))
#define pthread_mutex_trylock(a) my_pthread_mutex_trylock((a))
int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,