diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-27 13:01:14 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-27 13:01:14 (GMT) |
commit | c41f7983838a654c830edc94470be4defd0f1686 (patch) | |
tree | 648a0b4cf71d39365430d5667db3964f404ef461 /Source/CursesDialog/cmCursesStandardIncludes.h | |
parent | a764593f1d4f67d9b89d0a128c6cd69114097865 (diff) | |
download | CMake-c41f7983838a654c830edc94470be4defd0f1686.zip CMake-c41f7983838a654c830edc94470be4defd0f1686.tar.gz CMake-c41f7983838a654c830edc94470be4defd0f1686.tar.bz2 |
COMP: make it build on NetBSD, which has separate curses and ncurses, so
it has to be detected that curses isn't good enough, but ncurses is, and
that ncurses.h instead of curses.h is included
Alex
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r-- | Source/CursesDialog/cmCursesStandardIncludes.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h index 456d4a6..a5b229c 100644 --- a/Source/CursesDialog/cmCursesStandardIncludes.h +++ b/Source/CursesDialog/cmCursesStandardIncludes.h @@ -20,6 +20,8 @@ #define _MSE_INT_H #endif +#include <cmFormConfigure.h> + #if defined(__hpux) # define _BOOL_DEFINED # include <sys/time.h> @@ -28,7 +30,17 @@ # include <form.h> # undef _XOPEN_SOURCE_EXTENDED #else -# include <curses.h> +/* figure out which curses.h to include */ +# if defined(CURSES_HAVE_NCURSES_H) +# include <ncurses.h> +# elif defined(CURSES_HAVE_NCURSES_NCURSES_H) +# include <ncurses/ncurses.h> +# elif defined(CURSES_HAVE_NCURSES_CURSES_H) +# include <ncurses/curses.h> +# else +# include <curses.h> +# endif + # include <form.h> #endif |