diff options
Diffstat (limited to 'lib/libc/include/port_before.h')
-rw-r--r-- | lib/libc/include/port_before.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/libc/include/port_before.h b/lib/libc/include/port_before.h new file mode 100644 index 0000000..430d233 --- /dev/null +++ b/lib/libc/include/port_before.h @@ -0,0 +1,23 @@ +/* $FreeBSD$ */ + +#ifndef _PORT_BEFORE_H_ +#define _PORT_BEFORE_H_ + +#define _LIBC 1 +#define DO_PTHREADS 1 +#define USE_POLL 1 +#define HAVE_MD5 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_ */ |