mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 17:25:31 +02:00
Compile problem about "madvise()" on Solaris (bug#7156). (Patch supplied by Kent)
This commit is contained in:
parent
ef83979a35
commit
f7bcd099f5
1 changed files with 8 additions and 0 deletions
|
|
@ -107,6 +107,14 @@
|
|||
#define _GNU_SOURCE 1
|
||||
#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 */
|
||||
#if defined(UNDEF_THREADS_HACK)
|
||||
#undef THREAD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue