[AC_DEFINE([VNC_SOCKLEN_T], [socklen_t], [Use correct size])],
[AC_DEFINE([VNC_SOCKLEN_T], [int])])
+AC_CHECK_HEADERS([sys/select.h])
+
AC_OUTPUT([Makefile
rdr/Makefile
network/Makefile
* USA.
*/
+#ifdef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#ifdef _WIN32
#define vncmax(a,b) (((a) > (b)) ? (a) : (b))
#endif
-// XXX should use autoconf HAVE_SYS_SELECT_H
-#ifdef _AIX
+/* Old systems have select() in sys/time.h */
+#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
-// XXX Lynx/OS 2.3: protos for gettimeofday(), select(), bzero()
-#ifdef Lynx
-#include <sys/proto.h>
-#endif
-
#include <rdr/FdInStream.h>
#include <rdr/Exception.h>
* USA.
*/
+#ifdef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#ifdef _WIN32
#include <sys/time.h>
#endif
-// XXX Lynx/OS 2.3: protos for select(), bzero()
-#ifdef Lynx
-#include <sys/proto.h>
+/* Old systems have select() in sys/time.h */
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
#endif
#include <rdr/FdOutStream.h>