Use BIND's resolver in libc.
[dragonfly.git] / lib / libc / include / port_before.h
1 /* $FreeBSD: src/lib/libc/include/port_before.h,v 1.1 2006/03/21 15:37:15 ume Exp $ */
2
3 #ifndef _PORT_BEFORE_H_
4 #define _PORT_BEFORE_H_
5
6 #define _LIBC           1
7 #define DO_PTHREADS     1
8 #define USE_KQUEUE      1
9
10 #define ISC_SOCKLEN_T   socklen_t
11 #define ISC_FORMAT_PRINTF(fmt, args) \
12         __attribute__((__format__(__printf__, fmt, args)))
13 #define DE_CONST(konst, var) \
14         do { \
15                 union { const void *k; void *v; } _u; \
16                 _u.k = konst; \
17                 var = _u.v; \
18         } while (0)
19
20 #define UNUSED(x) (x) = (x)
21
22 #endif /* _PORT_BEFORE_H_ */