aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-10-22 09:57:34 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-10-22 09:57:34 +0000
commit2d7b9daffd9132f2b4c3b562cf2ddeb9fd487a20 (patch)
treefb82c9ca69cd3997d1de691df534bec018e1704e /sys/sys/types.h
parentd8d00fade9faed974eb48834b5e93fed72cb024d (diff)
downloadsrc-2d7b9daffd9132f2b4c3b562cf2ddeb9fd487a20.tar.gz
src-2d7b9daffd9132f2b4c3b562cf2ddeb9fd487a20.zip
Add back the typedefs for in_addr_t and in_port_t; some broken autoconf
scripts expect <sys/types.h> to define them.
Notes
Notes: svn path=/head/; revision=105683
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 0a5606272fe7..c952a78f26b7 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -127,6 +127,16 @@ typedef __gid_t gid_t; /* group id */
#define _GID_T_DECLARED
#endif
+#ifndef _IN_ADDR_T_DECLARED
+typedef __uint32_t in_addr_t; /* base type for internet address */
+#define _IN_ADDR_T_DECLARED
+#endif
+
+#ifndef _IN_PORT_T_DECLARED
+typedef __uint16_t in_port_t;
+#define _IN_PORT_T_DECLARED
+#endif
+
#ifndef _ID_T_DECLARED
typedef __id_t id_t; /* can hold a uid_t or pid_t */
#define _ID_T_DECLARED