diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2004-10-27 18:37:40 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2004-10-27 18:37:40 +0000 |
commit | eb0476c2dd920cb9e45ed14201647e3ae12be92c (patch) | |
tree | 35ae90a39e36d9cf0ee5e91c9d93e277e83844ce /devel/gdb6/files/fbsd4.h | |
parent | Update to DAT 4401 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=120333
Diffstat (limited to 'devel/gdb6/files/fbsd4.h')
-rw-r--r-- | devel/gdb6/files/fbsd4.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/gdb6/files/fbsd4.h b/devel/gdb6/files/fbsd4.h new file mode 100644 index 000000000000..28afb1ba4ca1 --- /dev/null +++ b/devel/gdb6/files/fbsd4.h @@ -0,0 +1,15 @@ +// $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; +} |