Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/readline add necessary headers for th...



details:   https://anonhg.NetBSD.org/src/rev/db7607ad9bd5
branches:  trunk
changeset: 770433:db7607ad9bd5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 16 19:41:30 2011 +0000

description:
add necessary headers for this to compile without warnings

diffstat:

 external/gpl3/gdb/dist/readline/display.c  |  1 +
 external/gpl3/gdb/dist/readline/rltty.c    |  4 ++--
 external/gpl3/gdb/dist/readline/terminal.c |  4 ++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 1b33e092889a -r db7607ad9bd5 external/gpl3/gdb/dist/readline/display.c
--- a/external/gpl3/gdb/dist/readline/display.c Sun Oct 16 19:41:07 2011 +0000
+++ b/external/gpl3/gdb/dist/readline/display.c Sun Oct 16 19:41:30 2011 +0000
@@ -47,6 +47,7 @@
 
 /* System-specific feature definitions and include files. */
 #include "rldefs.h"
+#include "rltty.h"
 #include "rlmbutil.h"
 
 /* Termcap library stuff. */
diff -r 1b33e092889a -r db7607ad9bd5 external/gpl3/gdb/dist/readline/rltty.c
--- a/external/gpl3/gdb/dist/readline/rltty.c   Sun Oct 16 19:41:07 2011 +0000
+++ b/external/gpl3/gdb/dist/readline/rltty.c   Sun Oct 16 19:41:30 2011 +0000
@@ -37,9 +37,9 @@
 
 #include "rldefs.h"
 
-#if defined (GWINSZ_IN_SYS_IOCTL)
+#if defined (HAVE_SYS_IOCTL_H)
 #  include <sys/ioctl.h>
-#endif /* GWINSZ_IN_SYS_IOCTL */
+#endif /* HAVE_SYS_IOCTL_H */
 
 #include "rltty.h"
 #include "readline.h"
diff -r 1b33e092889a -r db7607ad9bd5 external/gpl3/gdb/dist/readline/terminal.c
--- a/external/gpl3/gdb/dist/readline/terminal.c        Sun Oct 16 19:41:07 2011 +0000
+++ b/external/gpl3/gdb/dist/readline/terminal.c        Sun Oct 16 19:41:30 2011 +0000
@@ -32,6 +32,10 @@
 #  include <sys/file.h>
 #endif /* HAVE_SYS_FILE_H */
 
+#if defined (HAVE_SYS_IOCTL_H)
+#include <sys/ioctl.h>
+#endif /* HAVE_SYS_IOCTL_H */
+
 #if defined (HAVE_UNISTD_H)
 #  include <unistd.h>
 #endif /* HAVE_UNISTD_H */



Home | Main Index | Thread Index | Old Index