This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix gdbserver windows build
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 27 Feb 2007 12:24:13 -0500
- Subject: Fix gdbserver windows build
How'd I get this wrong... when I fixed terminal.h, I didn't test on
Windows, which definitely does not have sgtty.h. Checked in.
--
Daniel Jacobowitz
CodeSourcery
2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
* terminal.h: Check HAVE_SGTTY_H.
Index: terminal.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/terminal.h,v
retrieving revision 1.2
diff -u -p -r1.2 terminal.h
--- terminal.h 23 Dec 2005 18:11:55 -0000 1.2
+++ terminal.h 27 Feb 2007 17:22:58 -0000
@@ -39,7 +39,8 @@
#undef TIOCSETP
#define TIOCSETP TCSETAF
#define TERMINAL struct termio
-#else /* ! HAVE_TERMIO_H; default to SGTTY. */
+#else /* ! HAVE_TERMIO_H */
+#ifdef HAVE_SGTTY_H
#define HAVE_SGTTY
#include <fcntl.h>
#include <sgtty.h>
@@ -47,5 +48,6 @@
#define TERMINAL struct sgttyb
#endif
#endif
+#endif
#endif /* !defined (TERMINAL_H) */