xref: /freebsd/lib/libc/include/port_before.h (revision b9f654b163bce26de79705e77b872427c9f2afa1)
1 /* $FreeBSD$ */
2 
3 #ifndef _PORT_BEFORE_H_
4 #define _PORT_BEFORE_H_
5 
6 #define _LIBC		1
7 #define DO_PTHREADS	1
8 #define USE_POLL	1
9 #define HAVE_MD5	1
10 
11 #define ISC_SOCKLEN_T	socklen_t
12 #define ISC_FORMAT_PRINTF(fmt, args) \
13 	__attribute__((__format__(__printf__, fmt, args)))
14 #define DE_CONST(konst, var) \
15         do { \
16                 union { const void *k; void *v; } _u; \
17                 _u.k = konst; \
18                 var = _u.v; \
19         } while (0)
20 
21 #define UNUSED(x) (void)(x)
22 
23 #endif /* _PORT_BEFORE_H_ */
24