<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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@6310
cda61777-01e9-0310-a592-
d414129be87e
CFLAGS="$CFLAGS -Wall -Werror"
fi
-AC_CHECK_HEADERS([utmpx.h],,,[
+AC_CHECK_HEADERS([utmpx.h sys/select.h],,,[
#include <sys/types.h>
#include <utmp.h>])
#ifndef HAVE_PTSNAME
# define BSD_PTYS
#endif
+#ifndef HAVE_SYS_SELECT_H
+# define HAVE_NO_SYS_SELECT_H
+#endif
])
#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"
#include <errno.h>
#include <assert.h>
#include <glob.h>
+#ifndef HAVE_NO_SYS_SELECT_H
+#include <sys/select.h>
+#endif
#include "putty.h"
#include "psftp.h"