In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:234, from ui/gtk.c:44:
/usr/local/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn't a prototype
ui/gtk.c: In function 'gd_vc_init':
ui/gtk.c:1141: error: storage size of 'tty' isn't known
ui/gtk.c:1165: warning: implicit declaration of function 'tcgetattr'
ui/gtk.c:1165: warning: nested extern declaration of 'tcgetattr'
ui/gtk.c:1166: warning: implicit declaration of function 'cfmakeraw'
ui/gtk.c:1166: warning: nested extern declaration of 'cfmakeraw'
ui/gtk.c:1167: warning: implicit declaration of function 'tcsetattr'
ui/gtk.c:1167: warning: nested extern declaration of 'tcsetattr'
ui/gtk.c:1167: error: 'TCSAFLUSH' undeclared (first use in this function)
ui/gtk.c:1167: error: (Each undeclared identifier is reported only once
ui/gtk.c:1167: error: for each function it appears in.)
ui/gtk.c:1141: warning: unused variable 'tty'
e.g.
#if defined(__GLIBC__)
# include <pty.h>
#elif defined CONFIG_BSD
# include <termios.h>
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
# include <libutil.h>
# else
# include <util.h>
# endif
#elif defined CONFIG_SOLARIS
# include <stropts.h>
#endif
For *BSD OS's you have to include termios.h..
In file included from /usr/local/ include/ gtk-2.0/ gtk/gtk. h:234,
from ui/gtk.c:44: include/ gtk-2.0/ gtk/gtkitemfact ory.h:47: warning: function declaration isn't a prototype
/usr/local/
ui/gtk.c: In function 'gd_vc_init':
ui/gtk.c:1141: error: storage size of 'tty' isn't known
ui/gtk.c:1165: warning: implicit declaration of function 'tcgetattr'
ui/gtk.c:1165: warning: nested extern declaration of 'tcgetattr'
ui/gtk.c:1166: warning: implicit declaration of function 'cfmakeraw'
ui/gtk.c:1166: warning: nested extern declaration of 'cfmakeraw'
ui/gtk.c:1167: warning: implicit declaration of function 'tcsetattr'
ui/gtk.c:1167: warning: nested extern declaration of 'tcsetattr'
ui/gtk.c:1167: error: 'TCSAFLUSH' undeclared (first use in this function)
ui/gtk.c:1167: error: (Each undeclared identifier is reported only once
ui/gtk.c:1167: error: for each function it appears in.)
ui/gtk.c:1141: warning: unused variable 'tty'
e.g.
#if defined(__GLIBC__) __FreeBSD_ _) || defined( __FreeBSD_ kernel_ _) || defined( __DragonFly_ _)
# include <pty.h>
#elif defined CONFIG_BSD
# include <termios.h>
# if defined(
# include <libutil.h>
# else
# include <util.h>
# endif
#elif defined CONFIG_SOLARIS
# include <stropts.h>
#endif