summaryrefslogtreecommitdiff
path: root/include/arpa
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-03-10 06:42:27 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-03-10 06:42:27 +0000
commit6a6230d2f647ec398984f89922ccb85a7b459521 (patch)
tree4d519d265a17a89110120a04e0ed090d2c1c1a95 /include/arpa
parent2bc5801e8c8fdca7bb8ec6c531330f28f369ff1e (diff)
Notes
Diffstat (limited to 'include/arpa')
-rw-r--r--include/arpa/inet.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index 9c9554e5a625..42daebf13c5d 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -64,6 +64,14 @@
/* Required for byteorder(3) functions. */
#include <machine/endian.h>
+#ifndef INET_ADDRSTRLEN
+#define INET_ADDRSTRLEN 16
+#endif
+
+#ifndef INET6_ADDRSTRLEN
+#define INET6_ADDRSTRLEN 46
+#endif
+
#ifndef _IN_ADDR_T_DECLARED_
typedef __uint32_t in_addr_t;
#define _IN_ADDR_T_DECLARED_
@@ -82,8 +90,8 @@ typedef _BSD_SIZE_T_ size_t;
#endif /* !_POSIX_SOURCE */
/*
- * XXX socklen_t is used by a POSIX.1-200x interface, but not required by
- * POSIX.1-200x.
+ * XXX socklen_t is used by a POSIX.1-2001 interface, but not required by
+ * POSIX.1-2001.
*/
#ifdef _BSD_SOCKLEN_T_
typedef _BSD_SOCKLEN_T_ socklen_t;
@@ -97,6 +105,10 @@ struct in_addr {
#define _STRUCT_IN_ADDR_DECLARED
#endif
+/*
+ * XXX missing typedefs for uint16_t and uint32_t.
+ */
+
/* XXX all new diversions!! argh!! */
#ifndef _POSIX_SOURCE
#define inet_addr __inet_addr