From 7937658bb733b062c06cf70489fe637d5bce9896 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 20 Sep 2002 10:44:22 +0000 Subject: [PATCH] * ath.c: Include sys/time.h if sys/select.h is not available. * configure.ac (AC_CHECK_HEADERS): Check for sys/select.h. --- ChangeLog | 4 ++++ configure.ac | 3 +++ gpgme/ChangeLog | 4 ++++ gpgme/ath.c | 6 +++++- 4 files changed, 16 insertions(+), 1 deletion(-) 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 -- 2.26.2