* ath.c: Include sys/time.h if sys/select.h is not available.
authorWerner Koch <wk@gnupg.org>
Fri, 20 Sep 2002 10:44:22 +0000 (10:44 +0000)
committerWerner Koch <wk@gnupg.org>
Fri, 20 Sep 2002 10:44:22 +0000 (10:44 +0000)
* configure.ac (AC_CHECK_HEADERS): Check for sys/select.h.

trunk/ChangeLog
trunk/configure.ac
trunk/gpgme/ChangeLog
trunk/gpgme/ath.c

index a620aa175817045546a387f25ae564d679dd738d..e2b1431501ddcad5afed7a3d4f607eb046c9b6c2 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-20  Werner Koch  <wk@gnupg.org>
+
+       * configure.ac (AC_CHECK_HEADERS): Check for sys/select.h.
+
 2002-09-04  Marcus Brinkmann  <marcus@g10code.de>
 
        * autogen.sh (autoconf_vers): Bump up to 2.53 to get the @&t@
index 62f66c7849851b26c880316937b65c14c3bcf155..831065e0637ae0cdffff2928198f0b26ab664c35 100644 (file)
@@ -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.
index 3e90b75bacb25bce07fc603ddb22bb936b539770..325a0648c6a324cb3bb8611be74a22c5cb4661fc 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-20  Werner Koch  <wk@gnupg.org>
+
+       * ath.c: Include sys/time.h if sys/select.h is not available.
+
 2002-09-13  Marcus Brinkmann  <marcus@g10code.de>
 
        * keylist.c (keylist_status_handler): Do not call finish_key() here.
index e685031bc46c50fdea66d528f050bbcca0fb3d9f..1d8d94be3d3d7a2ca88a5e3a97836921e96784f1 100644 (file)
 #endif
 
 #include <unistd.h>
-#include <sys/select.h>
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#else
+# include <sys/time.h>
+#endif
 #include <sys/types.h>
 #include <sys/wait.h>