aboutsummaryrefslogtreecommitdiff
path: root/dhcp6.h
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2007-02-27 14:21:41 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:36 +0200
commitfe2c74572f875332b461ba2a17a594a7ee4eb2d3 (patch)
tree84ca26e3f0168158823d7c741479e37ba069a862 /dhcp6.h
parentfcdc0798bb2be5fa00427240afda6bdfd3d0a392 (diff)
supported compilation on Solaris (contributed by James Carlson)
Diffstat (limited to 'dhcp6.h')
-rw-r--r--dhcp6.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/dhcp6.h b/dhcp6.h
index f2b82f8..6afb517 100644
--- a/dhcp6.h
+++ b/dhcp6.h
@@ -31,6 +31,28 @@
#ifndef __DHCP6_H_DEFINED
#define __DHCP6_H_DEFINED
+#ifdef __sun__
+#define __P(x) x
+typedef uint8_t u_int8_t;
+#ifndef U_INT16_T_DEFINED
+#define U_INT16_T_DEFINED
+typedef uint16_t u_int16_t;
+#endif
+#ifndef U_INT32_T_DEFINED
+#define U_INT32_T_DEFINED
+typedef uint32_t u_int32_t;
+#endif
+typedef uint64_t u_int64_t;
+#ifndef CMSG_SPACE
+#define CMSG_SPACE(l) \
+ ((unsigned int)_CMSG_HDR_ALIGN(sizeof (struct cmsghdr) + (l)))
+#endif
+#ifndef CMSG_LEN
+#define CMSG_LEN(l) \
+ ((unsigned int)_CMSG_DATA_ALIGN(sizeof (struct cmsghdr)) + (l))
+#endif
+#endif
+
/* Error Values */
#define DH6ERR_FAILURE 16
#define DH6ERR_AUTHFAIL 17