Add fallback if SIGWINCH is unavailable

darcs-hash:20060828122515-ac50b-f2b8f1519bbbd62908a6648255bfb20bdce83212.gz
This commit is contained in:
axel 2006-08-28 22:25:15 +10:00
parent 53ea5d60b7
commit 6f058c687d

View file

@ -9,6 +9,8 @@
#include <wchar.h> #include <wchar.h>
#include <limits.h> #include <limits.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
#ifndef WCHAR_MAX #ifndef WCHAR_MAX
/** /**
@ -47,6 +49,10 @@ typedef char tputs_arg_t;
#define SIGIO SIGUSR1 #define SIGIO SIGUSR1
#endif #endif
#ifndef SIGWINCH
#define SIGIO SIGUSR2
#endif
#ifndef HAVE_WINSIZE #ifndef HAVE_WINSIZE
struct winsize struct winsize
{ {