--- contrib/ncurses/ncurses/tinfo/comp_scan.c.orig Fri Jan 5 18:02:43 2007 +++ contrib/ncurses/ncurses/tinfo/comp_scan.c Sat Jan 6 11:21:09 2007 @@ -513,8 +513,10 @@ if (!silent) { if (*after_list == '\0') _nc_warning("empty longname field"); +#ifndef FREEBSD_NATIVE else if (strchr(after_list, ' ') == 0) _nc_warning("older tic versions may treat the description field as an alias"); +#endif } } else { after_list = buffer + strlen(buffer); --- contrib/ncurses/ncurses/tinfo/lib_termcap.c.orig Fri Jan 5 18:02:43 2007 +++ contrib/ncurses/ncurses/tinfo/lib_termcap.c Sat Jan 6 11:53:43 2007 @@ -50,6 +50,10 @@ NCURSES_EXPORT_VAR(char *) UP = 0; NCURSES_EXPORT_VAR(char *) BC = 0; +#ifdef FREEBSD_NATIVE +extern char _nc_termcap[]; /* buffer to copy out */ +#endif + typedef struct { long sequence; char *fix_sgr0; /* this holds the filtered sgr0 string */ @@ -174,6 +178,16 @@ #endif*/ } + +#ifdef FREEBSD_NATIVE + /* + * This is a REALLY UGLY hack. Basically, if we originate with + * a termcap source, try and copy it out. + */ + if (bufp && _nc_termcap[0]) + strncpy(bufp, _nc_termcap, 1024); +#endif + returnCode(errcode); }