Check where select() is defined during configure time


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3165 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rdr/FdInStream.cxx b/common/rdr/FdInStream.cxx
index 2b11973..e2281b4 100644
--- a/common/rdr/FdInStream.cxx
+++ b/common/rdr/FdInStream.cxx
@@ -16,6 +16,10 @@
  * USA.
  */
 
+#ifdef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #ifdef _WIN32
@@ -43,16 +47,11 @@
 #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>