From: Werner Koch Date: Fri, 20 Sep 2002 10:44:22 +0000 (+0000) Subject: * ath.c: Include sys/time.h if sys/select.h is not available. X-Git-Tag: gpgme-1.2.0@1385~812 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6e9848451044613796157b4879f44804c27949d6;p=gpgme.git * ath.c: Include sys/time.h if sys/select.h is not available. * configure.ac (AC_CHECK_HEADERS): Check for sys/select.h. --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index a620aa1..e2b1431 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2002-09-20 Werner Koch + + * configure.ac (AC_CHECK_HEADERS): Check for sys/select.h. + 2002-09-04 Marcus Brinkmann * autogen.sh (autoconf_vers): Bump up to 2.53 to get the @&t@ diff --git a/trunk/configure.ac b/trunk/configure.ac index 62f66c7..831065e 100644 --- a/trunk/configure.ac +++ b/trunk/configure.ac @@ -128,6 +128,9 @@ dnl FIXME: check whether Bonobo is installed dnl dnl Checks for header files. dnl +AC_CHECK_HEADERS(sys/select.h) + + dnl dnl Checks for typedefs and structures. diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 3e90b75..325a064 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2002-09-20 Werner Koch + + * ath.c: Include sys/time.h if sys/select.h is not available. + 2002-09-13 Marcus Brinkmann * keylist.c (keylist_status_handler): Do not call finish_key() here. diff --git a/trunk/gpgme/ath.c b/trunk/gpgme/ath.c index e685031..1d8d94b 100644 --- a/trunk/gpgme/ath.c +++ b/trunk/gpgme/ath.c @@ -23,7 +23,11 @@ #endif #include -#include +#ifdef HAVE_SYS_SELECT_H +# include +#else +# include +#endif #include #include