Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 254966 | Differences between
and this patch

Collapse All | Expand All

(-)/autoconf/configure.in (-26 / +31 lines)
Lines 461-495 Link Here
461
dnl cd $cur_dir
461
dnl cd $cur_dir
462
PKG_CHECK_MODULES([TRE], tre)
462
PKG_CHECK_MODULES([TRE], tre)
463
463
464
dnl REMEMBER TO CHANGE WITH A NEW C-ARES RELEASE!
464
dnl dnl REMEMBER TO CHANGE WITH A NEW C-ARES RELEASE!
465
cares_version="1.4.0"
465
dnl cares_version="1.4.0"
466
AC_MSG_RESULT(extracting c-ares resolver library)
466
dnl AC_MSG_RESULT(extracting c-ares resolver library)
467
cur_dir=`pwd`
467
dnl cur_dir=`pwd`
468
cd extras
468
dnl cd extras
469
dnl remove old c-ares directory to force a recompile...
469
dnl dnl remove old c-ares directory to force a recompile...
470
rm -rf c-ares-$cares_version
470
dnl rm -rf c-ares-$cares_version
471
if test "x$ac_cv_path_GUNZIP" = "x" ; then
471
dnl if test "x$ac_cv_path_GUNZIP" = "x" ; then
472
	tar xfz c-ares.tar.gz
472
dnl 	tar xfz c-ares.tar.gz
473
else
473
dnl else
474
	cp c-ares.tar.gz c-ares.tar.gz.bak
474
dnl 	cp c-ares.tar.gz c-ares.tar.gz.bak
475
	gunzip -f c-ares.tar.gz
475
dnl 	gunzip -f c-ares.tar.gz
476
	cp c-ares.tar.gz.bak c-ares.tar.gz
476
dnl 	cp c-ares.tar.gz.bak c-ares.tar.gz
477
	tar xf c-ares.tar
477
dnl 	tar xf c-ares.tar
478
fi
478
dnl fi
479
AC_MSG_RESULT(configuring c-ares library)
479
dnl AC_MSG_RESULT(configuring c-ares library)
480
cd c-ares-$cares_version
480
dnl cd c-ares-$cares_version
481
./configure --prefix=$cur_dir/extras/c-ares || exit 1
481
dnl ./configure --prefix=$cur_dir/extras/c-ares || exit 1
482
AC_MSG_RESULT(compiling c-ares resolver library)
482
dnl AC_MSG_RESULT(compiling c-ares resolver library)
483
$ac_cv_prog_MAKER || exit 1
483
dnl $ac_cv_prog_MAKER || exit 1
484
AC_MSG_RESULT(installing c-ares resolver library)
484
dnl AC_MSG_RESULT(installing c-ares resolver library)
485
$ac_cv_prog_MAKER install || exit 1
485
dnl $ac_cv_prog_MAKER install || exit 1
486
CARESINCDIR="$cur_dir/extras/c-ares/include"
486
dnl CARESINCDIR="$cur_dir/extras/c-ares/include"
487
AC_SUBST(CARESINCDIR)
487
dnl AC_SUBST(CARESINCDIR)
488
CARESLIBDIR="-L../extras/c-ares/lib"
488
dnl CARESLIBDIR="-L../extras/c-ares/lib"
489
dnl AC_SUBST(CARESLIBDIR)
490
dnl CARESLIBS="-lcares"
491
dnl AC_SUBST(CARESLIBS)
492
dnl cd $cur_dir
493
CARESLIBDIR=""
489
AC_SUBST(CARESLIBDIR)
494
AC_SUBST(CARESLIBDIR)
490
CARESLIBS="-lcares"
495
CARESLIBS="-lcares"
491
AC_SUBST(CARESLIBS)
496
AC_SUBST(CARESLIBS)
492
cd $cur_dir
497
493
498
494
499
495
AC_OUTPUT(Makefile src/modules/Makefile unreal ircdcron/ircdchk)
500
AC_OUTPUT(Makefile src/modules/Makefile unreal ircdcron/ircdchk)
(-)/Makefile.in (-1 / +1 lines)
Lines 38-44 Link Here
38
CRYPTOLIB=@CRYPTOLIB@
38
CRYPTOLIB=@CRYPTOLIB@
39
OPENSSLINCLUDES=
39
OPENSSLINCLUDES=
40
40
41
XCFLAGS=@TRE_CFLAGS@ -I@CARESINCDIR@ @CARESLIBDIR@ @CFLAGS@
41
XCFLAGS=@TRE_CFLAGS@ @CARESLIBDIR@ @CFLAGS@
42
#
42
#
43
# use the following on MIPS:
43
# use the following on MIPS:
44
#CFLAGS= -systype bsd43 -DSYSTYPE_BSD43 -I$(INCLUDEDIR)
44
#CFLAGS= -systype bsd43 -DSYSTYPE_BSD43 -I$(INCLUDEDIR)
(-)/src/res.c (-6 / +6 lines)
Lines 49-57 Link Here
49
#include <res.h>
49
#include <res.h>
50
50
51
/* Forward declerations */
51
/* Forward declerations */
52
void unrealdns_cb_iptoname(void *arg, int status, struct hostent *he);
52
void unrealdns_cb_iptoname(void *arg, int status, int timeouts, struct hostent *he);
53
void unrealdns_cb_nametoip_verify(void *arg, int status, struct hostent *he);
53
void unrealdns_cb_nametoip_verify(void *arg, int status, int timeouts, struct hostent *he);
54
void unrealdns_cb_nametoip_link(void *arg, int status, struct hostent *he);
54
void unrealdns_cb_nametoip_link(void *arg, int status, int timeouts, struct hostent *he);
55
void unrealdns_delasyncconnects(void);
55
void unrealdns_delasyncconnects(void);
56
static unsigned int unrealdns_haship(void *binaryip, int length);
56
static unsigned int unrealdns_haship(void *binaryip, int length);
57
static void unrealdns_addtocache(char *name, void *binaryip, int length);
57
static void unrealdns_addtocache(char *name, void *binaryip, int length);
Lines 240-246 Link Here
240
#endif
240
#endif
241
}
241
}
242
242
243
void unrealdns_cb_iptoname(void *arg, int status, struct hostent *he)
243
void unrealdns_cb_iptoname(void *arg, int status, int timeouts, struct hostent *he)
244
{
244
{
245
DNSReq *r = (DNSReq *)arg;
245
DNSReq *r = (DNSReq *)arg;
246
DNSReq *newr;
246
DNSReq *newr;
Lines 290-296 Link Here
290
}
290
}
291
291
292
292
293
void unrealdns_cb_nametoip_verify(void *arg, int status, struct hostent *he)
293
void unrealdns_cb_nametoip_verify(void *arg, int status, int timeouts, struct hostent *he)
294
{
294
{
295
DNSReq *r = (DNSReq *)arg;
295
DNSReq *r = (DNSReq *)arg;
296
aClient *acptr = r->cptr;
296
aClient *acptr = r->cptr;
Lines 363-369 Link Here
363
	unrealdns_freeandremovereq(r);
363
	unrealdns_freeandremovereq(r);
364
}
364
}
365
365
366
void unrealdns_cb_nametoip_link(void *arg, int status, struct hostent *he)
366
void unrealdns_cb_nametoip_link(void *arg, int status, int timeouts, struct hostent *he)
367
{
367
{
368
DNSReq *r = (DNSReq *)arg;
368
DNSReq *r = (DNSReq *)arg;
369
int n;
369
int n;

Return to bug 254966