1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Some systems (HP-UX) don't yet have <sys/select.h>, putting select() in

<sys/time.h>.  Cope with this.  Where <sys/select.h> _is_ available, though,
use it (since it's where POSIX puts select()).  Problem reported by Mike
Protts.

[originally from svn r6310]
This commit is contained in:
Ben Harris
2005-09-14 10:53:39 +00:00
parent f2d8fd97d0
commit 3bfb6ad651
3 changed files with 10 additions and 1 deletions

View File

@ -13,7 +13,10 @@
#include <termios.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#ifndef HAVE_NO_SYS_SELECT_H
#include <sys/select.h>
#endif
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include "putty.h"