aboutsummaryrefslogtreecommitdiff
path: root/inet/arpa/inet.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-28 22:44:38 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-28 22:44:38 +0000
commit3584d5fb31de58aef717b4eb8b71be4093e10430 (patch)
tree843d8746c6cd0a612f27c54c9783bbc9100afb44 /inet/arpa/inet.h
parent59c8d6e1470a2807736de1aade9a2945bc150b6e (diff)
downloadglibc-3584d5fb31de58aef717b4eb8b71be4093e10430.zip
glibc-3584d5fb31de58aef717b4eb8b71be4093e10430.tar.gz
glibc-3584d5fb31de58aef717b4eb8b71be4093e10430.tar.bz2
Update.
* inet/arpa/inet.h: Don't include <sys/types.h>. Define socklen_t if not already happened. * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>. Don't include <limits.h> and <bits/sockaddr.h>.
Diffstat (limited to 'inet/arpa/inet.h')
-rw-r--r--inet/arpa/inet.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/inet/arpa/inet.h b/inet/arpa/inet.h
index a9381de..9453425 100644
--- a/inet/arpa/inet.h
+++ b/inet/arpa/inet.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,9 +20,14 @@
#define _ARPA_INET_H 1
#include <features.h>
-#include <sys/types.h>
#include <netinet/in.h> /* To define `struct in_addr'. */
+/* Type for length arguments in socket calls. */
+#ifndef __socklen_t_defined
+typedef __socklen_t socklen_t;
+# define __socklen_t_defined
+#endif
+
__BEGIN_DECLS
/* Convert Internet host address from numbers-and-dots notation in CP