diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-03-21 15:37:16 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-03-21 15:37:16 +0000 |
| commit | ab96eeabe8f319206346df2f486e01caabbfd8f4 (patch) | |
| tree | 6a044a277848f8d42cf8a314d701efea03241963 /lib/libc/include/port_before.h | |
| parent | 03970c5728f7f53ce03efacc0cf12ef383d7cdda (diff) | |
Notes
Diffstat (limited to 'lib/libc/include/port_before.h')
| -rw-r--r-- | lib/libc/include/port_before.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libc/include/port_before.h b/lib/libc/include/port_before.h new file mode 100644 index 000000000000..beef71d02607 --- /dev/null +++ b/lib/libc/include/port_before.h @@ -0,0 +1,22 @@ +/* $FreeBSD$ */ + +#ifndef _PORT_BEFORE_H_ +#define _PORT_BEFORE_H_ + +#define _LIBC 1 +#define DO_PTHREADS 1 +#define USE_KQUEUE 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) (x) = (x) + +#endif /* _PORT_BEFORE_H_ */ |
