xref: /dragonfly/lib/libc/include/port_before.h (revision 32efd857)
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 #ifdef __LIBC
7 #define _LIBC		1
8 #endif
9 #define DO_PTHREADS	1
10 #define USE_KQUEUE	1
11 
12 #define ISC_SOCKLEN_T	socklen_t
13 #define ISC_FORMAT_PRINTF(fmt, args) \
14 	__attribute__((__format__(__printf__, fmt, args)))
15 #define DE_CONST(konst, var) \
16         do { \
17                 union { const void *k; void *v; } _u; \
18                 _u.k = konst; \
19                 var = _u.v; \
20         } while (0)
21 
22 #define UNUSED(x) (void)(x)
23 
24 #endif /* _PORT_BEFORE_H_ */
25