It requires that your main application is built on top of libevent. Libdnsres' API essentially mirrors the traditional gethostbyname and getaddrinfo interfaces. All return values have been replaced by callbacks instead. The code borrows heavily from the BSD resolver library. In fact, it is an extremely ugly hack to make the BSD resolver library non-blocking and thread-safe without changing the API too much.
13 lines
521 B
Text
13 lines
521 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
|
|
|
|
--- Makefile.in.orig 2005-09-23 17:13:06.000000000 +0100
|
|
+++ Makefile.in
|
|
@@ -221,7 +221,7 @@ INCLUDES = -I$(top_srcdir)/compat @EVENT
|
|
man_MANS = dnsres.3
|
|
simple_test_SOURCES = test/simple_test.c
|
|
simple_test_INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/compat @EVENTINC@
|
|
-simple_test_LDADD = -L$(top_buildir) -ldnsres @EVENTLIB@
|
|
+simple_test_LDADD = -L. -ldnsres @EVENTLIB@
|
|
DISTCLEANFILES = *~ test/*~
|
|
all: config.h
|
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|