summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorLawrence Teo <lteo@cvs.openbsd.org>2015-10-15 02:26:28 +0000
committerLawrence Teo <lteo@cvs.openbsd.org>2015-10-15 02:26:28 +0000
commit807d86f128db988a27510a215fddacb7280fcc2d (patch)
tree239d8fd792dafa83ce465bc7c6c46c27ee0fb26c /share
parent0fac43ce93b2550b25fbf1ca76d023e6bbdfd3db (diff)
Add missing includes to make the pf(4) man page example program compile
again. Spotted by and based on a diff from Jack J. Woehr.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/pf.46
1 files changed, 4 insertions, 2 deletions
diff --git a/share/man/man4/pf.4 b/share/man/man4/pf.4
index ca74f80462c..bd76896a76d 100644
--- a/share/man/man4/pf.4
+++ b/share/man/man4/pf.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pf.4,v 1.85 2014/04/18 21:42:04 jmc Exp $
+.\" $OpenBSD: pf.4,v 1.86 2015/10/15 02:26:27 lteo Exp $
.\"
.\" Copyright (C) 2001, Kjell Wooding. All rights reserved.
.\"
@@ -26,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 18 2014 $
+.Dd $Mdocdate: October 15 2015 $
.Dt PF 4
.Os
.Sh NAME
@@ -1009,8 +1009,10 @@ command to show the hard limit of a memory pool used by the packet filter:
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/fcntl.h>
+#include <netinet/in.h>
#include <net/if.h>
#include <net/pfvar.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>