ports/devel/gdb6/files/fbsd4.h
David E. O'Brien eb0476c2dd Really allow building on 4.x. Rev 1.40 was a NOP as the base readline lib
(libreadline.so.4) was the same name as the ports's library.  So Rev 1.40
only worked if you manually installed the readline port.  This fix allows
gdb6 to build with the base stock readline.
2004-10-27 18:37:40 +00:00

15 lines
348 B
C

// $FreeBSD$
extern void _rl_set_screen_size (int, int);
#define rl_set_screen_size _rl_set_screen_size
#define rl_filename_completion_function filename_completion_function
extern int screenwidth, screenheight;
static inline void
rl_get_screen_size (int *rows, int *cols)
{
if (rows) *rows = screenheight;
if (cols) *cols = screenwidth;
}