summaryrefslogtreecommitdiff
path: root/lib/libc/include/port_before.h
blob: 0be03a7d24bdb8540be60805f662aa2a16de8275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "namespace.h"
#include <sys/cdefs.h>
#define ISC_FORMAT_PRINTF(a,b) __attribute__((__format__(__printf__,a,b)))
#define ISC_SOCKLEN_T	socklen_t
#ifdef __NetBSD__
#define DE_CONST(c,v)	v = __UNCONST(c)
#else
#define DE_CONST(c,v)	v = ((c) ? \
	strchr((const void *)(c), *(const char *)(const void *)(c)) : NULL)
#endif
#ifndef lint
#define UNUSED(a)	(void)&a
#else
#define UNUSED(a)	a = a
#endif