X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.h;h=a8aa314cfa86bec9a2108d2c22f1aa8b140c13e0;hp=f18753a4a74c128a3d04ffffb38bcb4c308936d1;hb=f1599796efed1eb67759cf42f47fe4bf6a9bf93c;hpb=f2747434dcdfe71c3a4d1b841070f4c9d8dc4965 diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index f18753a..a8aa314 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -20,7 +20,19 @@ #define _PB_NC_SCR_H #include /* This must be included before ncurses.h */ -#include +#if defined HAVE_NCURSESW_CURSES_H +# include +#elif defined HAVE_NCURSESW_H +# include +#elif defined HAVE_NCURSES_CURSES_H +# include +#elif defined HAVE_NCURSES_H +# include +#elif defined HAVE_CURSES_H +# include +#else +# error "Curses header file not found." +#endif #ifdef DEBUG #define DBG(fmt, args...) pb_log("DBG: " fmt, ## args)