2010-07-28 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Wed, 28 Jul 2010 23:24:57 +0000 (23:24 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 28 Jul 2010 23:24:57 +0000 (23:24 +0000)
PR build/11848
* configure.ac: Check for wresize.
* configure, config.in: Regenerate.
* tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
with HAVE_WRESIZE.

gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.ac
gdb/tui/tui-win.c

index 096be2c6801af627bba5a5b0c822d75674adc840..66e74f73ce163a815e845854fc4e8e2cf3c11003 100644 (file)
@@ -1,3 +1,11 @@
+2010-07-28  Pedro Alves  <pedro@codesourcery.com>
+
+       PR build/11848
+       * configure.ac: Check for wresize.
+       * configure, config.in: Regenerate.
+       * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
+       with HAVE_WRESIZE.
+
 2010-07-28  Tom Tromey  <tromey@redhat.com>
 
        PR python/11060:
index 635b85b958c90b0fd9ce505f9dae6b43de33197e..76591812c39034fc70910a631ea831cc6122ef19 100644 (file)
 /* Define to 1 if `vfork' works. */
 #undef HAVE_WORKING_VFORK
 
+/* Define to 1 if you have the `wresize' function. */
+#undef HAVE_WRESIZE
+
 /* Define to 1 if you have the `XML_StopParser' function. */
 #undef HAVE_XML_STOPPARSER
 
index bf93faf3c9716f3042fae74c1c7337f6eac16098..35705e0a2a0d02df7a4b894a7002c01a2816affa 100755 (executable)
@@ -12511,7 +12511,7 @@ fi
 for ac_func in canonicalize_file_name realpath getrusage getuid \
                getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
                sigaction sigprocmask sigsetmask socketpair syscall \
-               ttrace wborder setlocale iconvlist libiconvlist btowc \
+               ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
index 324a2c2571cd444dfc62761b3b0d9c4ea070709b..7067d266aa2da68b9630d5b426232394807562eb 100644 (file)
@@ -956,7 +956,7 @@ AC_FUNC_VFORK
 AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
                getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
                sigaction sigprocmask sigsetmask socketpair syscall \
-               ttrace wborder setlocale iconvlist libiconvlist btowc \
+               ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise])
 AM_LANGINFO_CODESET
 
index bd94fa839c23750b1546319075120056b76fc5fb..9f9f56e45fa03fdb61942b3a701cbc118d0b3a41 100644 (file)
@@ -1403,9 +1403,11 @@ make_visible_with_new_height (struct tui_win_info *win_info)
     case CMD_WIN:
       win_info->detail.command_info.cur_line = 0;
       win_info->detail.command_info.curch = 0;
+#ifdef HAVE_WRESIZE
       wresize (TUI_CMD_WIN->generic.handle,
               TUI_CMD_WIN->generic.height,
               TUI_CMD_WIN->generic.width);
+#endif
       mvwin (TUI_CMD_WIN->generic.handle,
             TUI_CMD_WIN->generic.origin.y,
             TUI_CMD_WIN->generic.origin.x);
This page took 0.03642 seconds and 4 git commands to generate.