summaryrefslogtreecommitdiff
path: root/lib/libc/sys/getpeername.2
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-15 21:48:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-15 21:48:58 +0000
commita7da00813e5cf8471d8e2562f51e2462e6974906 (patch)
tree0b84b56f8aa7f9a0cdc1c5011eb44af0dfdc60fd /lib/libc/sys/getpeername.2
parent30730f692e7606a10d47aebf4c9a82686d0c0a2d (diff)
must include <sys/types.h> before <sys.socket.h>
Diffstat (limited to 'lib/libc/sys/getpeername.2')
-rw-r--r--lib/libc/sys/getpeername.23
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 3d672ab5da3..9e489a962b5 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpeername.2,v 1.5 1999/02/15 19:04:20 millert Exp $
+.\" $OpenBSD: getpeername.2,v 1.6 1999/02/15 21:48:57 millert Exp $
.\" $NetBSD: getpeername.2,v 1.6 1995/10/12 15:40:56 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -41,6 +41,7 @@
.Nm getpeername
.Nd get name of connected peer
.Sh SYNOPSIS
+.Fd #include <sys/types.h>
.Fd #include <sys/socket.h>
.Ft int
.Fn getpeername "int s" "struct sockaddr *name" "socklen_t *namelen"