From ab96eeabe8f319206346df2f486e01caabbfd8f4 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Tue, 21 Mar 2006 15:37:16 +0000 Subject: - Merge our local changes. - Exclude unnecessary functions for us. --- lib/libc/include/port_after.h | 10 ++++++++++ lib/libc/include/port_before.h | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lib/libc/include/port_after.h create mode 100644 lib/libc/include/port_before.h (limited to 'lib/libc/include') diff --git a/lib/libc/include/port_after.h b/lib/libc/include/port_after.h new file mode 100644 index 000000000000..762795f5d63d --- /dev/null +++ b/lib/libc/include/port_after.h @@ -0,0 +1,10 @@ +/* $FreeBSD$ */ + +#ifndef _PORT_AFTER_H_ +#define _PORT_AFTER_H_ + +#define HAVE_SA_LEN 1 +#define HAS_INET6_STRUCTS 1 +#define HAVE_SIN6_SCOPE_ID 1 + +#endif /* _PORT_AFTER_H_ */ 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_ */ -- cgit v1.3