fix gdbtui build errors when pipe() is not available (e.g. mingw targets)
authorMike Frysinger <vapier@gentoo.org>
Mon, 20 Jul 2009 15:24:55 +0000 (15:24 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 20 Jul 2009 15:24:55 +0000 (15:24 +0000)
* configure.ac (AC_CHECK_FUNCS): Check for pipe.
* config.in, configure: Regenerate.
* tui/tui-io.c (TUI_USE_PIPE_FOR_READLINE): Define if HAVE_PIPE.

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

index 161c27cd16901ee6e5e408deab66051ab45a0cf7..28a37db1e31057df24ac2b350b3eacec0b972e91 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-20  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac (AC_CHECK_FUNCS): Check for pipe.
+       * config.in, configure: Regenerate.
+       * tui/tui-io.c (TUI_USE_PIPE_FOR_READLINE): Define if HAVE_PIPE.
+
 2009-07-20  Pedro Alves  <pedro@codesourcery.com>
 
        * gnu-nat.c: Include "inf-child.h".
index d4d44692170be683001fef7adac49f7dd8a5a0ce..f2d56a0adae051d0164ff34014be1fb5c94c7a19 100644 (file)
 /* Define if you support the personality syscall. */
 #undef HAVE_PERSONALITY
 
+/* Define to 1 if you have the `pipe' function. */
+#undef HAVE_PIPE
+
 /* Define to 1 if you have the `poll' function. */
 #undef HAVE_POLL
 
index 13b30f850d4f10da2005447ec63865015f2fea8d..30409c89dd545b3ae4ef02025c300f844ace1ec1 100755 (executable)
@@ -15868,7 +15868,7 @@ fi
 
 
 for ac_func in canonicalize_file_name realpath getrusage getuid \
-                getgid poll pread64 sbrk setpgid setpgrp setsid \
+               getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
                sigaction sigprocmask sigsetmask socketpair syscall \
                ttrace wborder setlocale iconvlist libiconvlist btowc
 do
index 1d91647e34ac25a9e749a463ec246dc96edcfd13..77f8436235af0459c55ceea4f1c02b1a19c6dcef 100644 (file)
@@ -785,7 +785,7 @@ AC_FUNC_ALLOCA
 AC_FUNC_MMAP
 AC_FUNC_VFORK
 AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
-                getgid poll pread64 sbrk setpgid setpgrp setsid \
+               getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
                sigaction sigprocmask sigsetmask socketpair syscall \
                ttrace wborder setlocale iconvlist libiconvlist btowc])
 AM_LANGINFO_CODESET
index 56e9dbafecb9c46937171b15b44a24f85a343aba..a597f372e0c8870e608cd5b1a4f5303055beb5d5 100644 (file)
@@ -113,7 +113,9 @@ key_is_command_char (int ch)
    #undef TUI_USE_PIPE_FOR_READLINE.  */
 
 /* For gdb 5.3, prefer to continue the pipe hack as a backup wheel.  */
+#ifdef HAVE_PIPE
 #define TUI_USE_PIPE_FOR_READLINE
+#endif
 /* #undef TUI_USE_PIPE_FOR_READLINE */
 
 /* TUI output files.  */
This page took 0.039744 seconds and 4 git commands to generate.