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-0-3-11~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7937658bb733b062c06cf70489fe637d5bce9896;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/ChangeLog b/ChangeLog index a620aa1..e2b1431 100644 --- a/ChangeLog +++ b/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/configure.ac b/configure.ac index 62f66c7..831065e 100644 --- a/configure.ac +++ b/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/gpgme/ChangeLog b/gpgme/ChangeLog index 3e90b75..325a064 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/ath.c b/gpgme/ath.c index e685031..1d8d94b 100644 --- a/gpgme/ath.c +++ b/gpgme/ath.c @@ -23,7 +23,11 @@ #endif #include -#include +#ifdef HAVE_SYS_SELECT_H +# include +#else +# include +#endif #include #include