add get_window_size
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1161 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -61,6 +61,10 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
#include <termios.h>
|
||||
#endif
|
||||
|
||||
#include "protos.h"
|
||||
|
||||
#ifndef HAVE_PUTENV
|
||||
@@ -206,6 +210,15 @@ void inaddr2str(struct in_addr addr, char *s, size_t len);
|
||||
|
||||
void mini_inetd (int port);
|
||||
|
||||
#ifndef HAVE_STRUCT_WINSIZE
|
||||
struct winsize {
|
||||
unsigned short ws_row, ws_col;
|
||||
unsigned short ws_xpixel, ws_ypixel;
|
||||
};
|
||||
#endif
|
||||
|
||||
int get_window_size(int fd, struct winsize *);
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE 0xffffffff
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user