mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Fix detection of tgoto declaration:
it needs curses.h to be included before term.h on Solaris Express 11
This commit is contained in:
parent
a94f829cda
commit
8d7ea40bfa
1 changed files with 15 additions and 0 deletions
|
@ -26,6 +26,21 @@ int main()
|
|||
tgoto(0,0,0);
|
||||
return 0;
|
||||
}" HAVE_DECL_TGOTO)
|
||||
IF(NOT HAVE_DECL_TGOTO)
|
||||
# On Solaris 11, term.h is broken, curses.h is also required.
|
||||
CHECK_CXX_SOURCE_COMPILES("
|
||||
#include <curses.h>
|
||||
#include <term.h>
|
||||
int main()
|
||||
{
|
||||
tgoto(0,0,0);
|
||||
return 0;
|
||||
}" HAVE_DECL_TGOTO2)
|
||||
IF(HAVE_DECL_TGOTO2)
|
||||
SET(HAVE_DECL_TGOTO 1 CACHE INTERNAL "" FORCE)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_REQUIRED_LIBRARIES)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue