diff options
author | Adam Tkac <atkac@redhat.com> | 2008-11-14 12:25:34 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2008-11-14 12:25:34 +0000 |
commit | 49e5ce6cf11d7d0091438112e08ce977bc929f4e (patch) | |
tree | 25bd15c46ade2a5433afa5dac58c2482cbc2a383 /common | |
parent | 5e8ce730b528312dde7d9ebdd03cc780a24c00f6 (diff) | |
download | tigervnc-49e5ce6cf11d7d0091438112e08ce977bc929f4e.tar.gz tigervnc-49e5ce6cf11d7d0091438112e08ce977bc929f4e.zip |
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
Diffstat (limited to 'common')
-rw-r--r-- | common/configure.ac | 2 | ||||
-rw-r--r-- | common/rdr/FdInStream.cxx | 13 | ||||
-rw-r--r-- | common/rdr/FdOutStream.cxx | 10 |
3 files changed, 15 insertions, 10 deletions
diff --git a/common/configure.ac b/common/configure.ac index b895da61..fc2f8bf4 100644 --- a/common/configure.ac +++ b/common/configure.ac @@ -84,6 +84,8 @@ AC_CHECK_TYPES([socklen_t], [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 diff --git a/common/rdr/FdInStream.cxx b/common/rdr/FdInStream.cxx index 2b119735..e2281b49 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> diff --git a/common/rdr/FdOutStream.cxx b/common/rdr/FdOutStream.cxx index 07ac04c2..c771166e 100644 --- a/common/rdr/FdOutStream.cxx +++ b/common/rdr/FdOutStream.cxx @@ -16,6 +16,10 @@ * USA. */ +#ifdef HAVE_COMMON_CONFIG_H +#include <common-config.h> +#endif + #include <stdio.h> #include <string.h> #ifdef _WIN32 @@ -33,9 +37,9 @@ #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> |