xref: /minix3/lib/libc/include/port_before.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
12fe8fb19SBen Gras #include "namespace.h"
22fe8fb19SBen Gras #include <sys/cdefs.h>
32fe8fb19SBen Gras #define ISC_FORMAT_PRINTF(a,b) __attribute__((__format__(__printf__,a,b)))
42fe8fb19SBen Gras #define ISC_SOCKLEN_T	socklen_t
5*0a6a1f1dSLionel Sambuc #ifdef __NetBSD__
6*0a6a1f1dSLionel Sambuc #define DE_CONST(c,v)	v = __UNCONST(c)
7*0a6a1f1dSLionel Sambuc #else
82fe8fb19SBen Gras #define DE_CONST(c,v)	v = ((c) ? \
92fe8fb19SBen Gras 	strchr((const void *)(c), *(const char *)(const void *)(c)) : NULL)
10*0a6a1f1dSLionel Sambuc #endif
112fe8fb19SBen Gras #ifndef lint
122fe8fb19SBen Gras #define UNUSED(a)	(void)&a
132fe8fb19SBen Gras #else
142fe8fb19SBen Gras #define UNUSED(a)	a = a
152fe8fb19SBen Gras #endif
16