Commit 8b7b6f46 authored by joerg@mysql.com's avatar joerg@mysql.com

Compile problem about "madvise()" on Solaris (bug#7156). (Patch supplied by Kent)

parent d8bd9289
...@@ -107,6 +107,14 @@ ...@@ -107,6 +107,14 @@
#define _GNU_SOURCE 1 #define _GNU_SOURCE 1
#endif #endif
/*
Temporary solution to solve bug#7156. Include "sys/types.h" before
the thread headers, else the function madvise() will not be defined
*/
#if defined(HAVE_SYS_TYPES_H) && ( defined(sun) || defined(__sun) )
#include <sys/types.h>
#endif
/* The client defines this to avoid all thread code */ /* The client defines this to avoid all thread code */
#if defined(UNDEF_THREADS_HACK) #if defined(UNDEF_THREADS_HACK)
#undef THREAD #undef THREAD
......
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