]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
uxcons: Don't try to include <sys/select.h> on systems that don't have it.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 1 May 2016 16:11:50 +0000 (18:11 +0200)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 1 May 2016 16:13:03 +0000 (18:13 +0200)
Also include <sys/time.h> for ancient systems that define select()
there.

unix/uxcons.c

index f2a25f3fed70f90c17a9968ca000fdf9d02a9a3e..641c4b0f4aae914303c2fc44485d52c710cbb5c7 100644 (file)
 #include <termios.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/time.h>
+#ifndef HAVE_NO_SYS_SELECT_H
 #include <sys/select.h>
+#endif
 
 #include "putty.h"
 #include "storage.h"