diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-11-25 13:14:58 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-11-25 13:14:58 +1100 |
commit | 58e298d11b8752062c21b693126e4206458bdad8 (patch) | |
tree | 8917421c741b77469b5057f235b18eca2c7ea33b /configure.ac | |
parent | faec5ca73f27d4fe5a0d6c2075de8031160037b0 (diff) |
- (dtucker) [configure.ac] Apply tim's fix for older systems where the
resolver state in resolv.h is "state" not "__res_state". With slight
modification by me to also work on old AIXes. ok djm@
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 339c2343..2149f5af 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.309 2005/11/24 11:34:54 dtucker Exp $ +# $Id: configure.ac,v 1.310 2005/11/25 02:14:58 dtucker Exp $ # # Copyright (c) 1999-2004 Damien Miller # @@ -2534,6 +2534,17 @@ OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX) OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX) AC_CHECK_MEMBERS([struct stat.st_blksize]) +AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE(__res_state, state, + [Define if we don't have struct __res_state in resolv.h])], +[ +#include <stdio.h> +#if HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> +]) AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage], ac_cv_have_ss_family_in_struct_ss, [ |