Don't define DMLC_LOG_STACK_TRACE on Solaris (#59)
DMLC_LOG_STACK_TRACE involves use of non-standard header execinfo.h, which causes compilation failure on Solaris.
This commit is contained in:
parent
fc5072b100
commit
87143deb4c
@ -41,7 +41,9 @@
|
|||||||
* \brief Wheter to print stack trace for fatal error,
|
* \brief Wheter to print stack trace for fatal error,
|
||||||
* enabled on linux when using gcc.
|
* enabled on linux when using gcc.
|
||||||
*/
|
*/
|
||||||
#if (!defined(DMLC_LOG_STACK_TRACE) && defined(__GNUC__) && !defined(__MINGW32__))
|
#if (!defined(DMLC_LOG_STACK_TRACE) \
|
||||||
|
&& defined(__GNUC__) && !defined(__MINGW32__) \
|
||||||
|
&& !defined(__sun) && !defined(__SVR4))
|
||||||
#define DMLC_LOG_STACK_TRACE 1
|
#define DMLC_LOG_STACK_TRACE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user