e852d6bc48
The resolver in libc creates a kqueue for watching a single file descriptor. This can be done using poll() which should be lighter on the kernel and reduce possible problems with rlimits (file descriptors, kqueues). Reviewed by: jhb
23 lines
491 B
C
23 lines
491 B
C
/* $FreeBSD$ */
|
|
|
|
#ifndef _PORT_BEFORE_H_
|
|
#define _PORT_BEFORE_H_
|
|
|
|
#define _LIBC 1
|
|
#define DO_PTHREADS 1
|
|
#define USE_POLL 1
|
|
|
|
#define ISC_SOCKLEN_T socklen_t
|
|
#define ISC_FORMAT_PRINTF(fmt, args) \
|
|
__attribute__((__format__(__printf__, fmt, args)))
|
|
#define DE_CONST(konst, var) \
|
|
do { \
|
|
union { const void *k; void *v; } _u; \
|
|
_u.k = konst; \
|
|
var = _u.v; \
|
|
} while (0)
|
|
|
|
#define UNUSED(x) (void)(x)
|
|
|
|
#endif /* _PORT_BEFORE_H_ */
|