res_init() is just a macro re-define of __res_init on Linux (Debian/Ubuntu)
This patch adds a check for the underlying structure and uses it if needed
dnl Configuration input file for Squid
dnl
-dnl $Id: configure.in,v 1.479 2007/09/20 11:03:42 amosjeffries Exp $
+dnl $Id: configure.in,v 1.480 2007/09/20 11:07:53 amosjeffries Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AC_CONFIG_SRCDIR([src/main.cc])
AM_INIT_AUTOMAKE([tar-ustar])
-AC_REVISION($Revision: 1.479 $)dnl
+AC_REVISION($Revision: 1.480 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
regexec \
regfree \
res_init \
+ __res_init \
rint \
sbrk \
select \
/*
- * $Id: config.h,v 1.24 2007/09/20 10:59:30 amosjeffries Exp $
+ * $Id: config.h,v 1.25 2007/09/20 11:07:53 amosjeffries Exp $
*
* AUTHOR: Duane Wessels
*
#undef HAVE_MALLOC_H
#endif
+/*
+ * res_init() is just a macro re-definition of __res_init on Linux (Debian/Ubuntu)
+ */
+#if !defined(HAVE_RES_INIT) && defined(HAVE___RES_INIT) && !defined(res_init)
+#define res_init __res_init
+#define HAVE_RES_INIT HAVE___RES_INIT
+#endif
+
#if !defined(CACHEMGR_HOSTNAME)
#define CACHEMGR_HOSTNAME ""
#else