summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-03-21 15:37:16 +0000
committerume <ume@FreeBSD.org>2006-03-21 15:37:16 +0000
commit03859cff097cd048acc43548684969ea0b3e7f7e (patch)
tree6a044a277848f8d42cf8a314d701efea03241963 /lib/libc/include
parent92fc9582cfae8294317ce04ae7e2d14f94dd3ca8 (diff)
downloadFreeBSD-src-03859cff097cd048acc43548684969ea0b3e7f7e.zip
FreeBSD-src-03859cff097cd048acc43548684969ea0b3e7f7e.tar.gz
- Merge our local changes.
- Exclude unnecessary functions for us.
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/port_after.h10
-rw-r--r--lib/libc/include/port_before.h22
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/libc/include/port_after.h b/lib/libc/include/port_after.h
new file mode 100644
index 0000000..762795f
--- /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 0000000..beef71d
--- /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_ */
OpenPOWER on IntegriCloud