summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-01-20 11:03:15 +0000
committerbde <bde@FreeBSD.org>1998-01-20 11:03:15 +0000
commit69cc48469969f7d36269cc77135b4fc379a62e7e (patch)
treeb884de322e9c49467fe48ceb9cd8648360dc84df /lib/libc/net
parent7d170d6fd8f54857742e05f8a4e93e99f32fe0bd (diff)
downloadFreeBSD-src-69cc48469969f7d36269cc77135b4fc379a62e7e.zip
FreeBSD-src-69cc48469969f7d36269cc77135b4fc379a62e7e.tar.gz
Fixed #includes in the synopsis and in an example. <sys/socket.h>
isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable).
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/addr2ascii.32
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/addr2ascii.3 b/lib/libc/net/addr2ascii.3
index 282acac..8cf1b85 100644
--- a/lib/libc/net/addr2ascii.3
+++ b/lib/libc/net/addr2ascii.3
@@ -37,7 +37,6 @@
.Nd Generic address formatting routines
.Sh SYNOPSIS
.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
.Fd #include <netinet/in.h>
.Fd #include <arpa/inet.h>
.Ft "char *"
@@ -130,6 +129,7 @@ and
.Fn inet_aton
could be implemented thusly:
.Bd -literal -offset indent
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
OpenPOWER on IntegriCloud