summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2011-02-13 22:41:11 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2011-02-13 22:41:11 +0000
commit60432a4fd018811414b72de0b53800a75af46f20 (patch)
tree09d27e49c84439504ccebda1a13a806860a884b2 /sys/net
parentce68035db3ab14c4930ef3353fce4bd307c76111 (diff)
Unbreak userland as well, since bpf_filter.c is also used in libpcap.
Noticed by robert at openbsd pap st, thanks.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf_filter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c
index ac8e7705a0b..8335be30f94 100644
--- a/sys/net/bpf_filter.c
+++ b/sys/net/bpf_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf_filter.c,v 1.23 2011/02/12 20:58:28 canacar Exp $ */
+/* $OpenBSD: bpf_filter.c,v 1.24 2011/02/13 22:41:10 canacar Exp $ */
/* $NetBSD: bpf_filter.c,v 1.12 1996/02/13 22:00:00 christos Exp $ */
/*
@@ -38,12 +38,14 @@
*/
#include <sys/param.h>
-#include <sys/systm.h>
#include <sys/types.h>
#include <sys/time.h>
#ifndef _KERNEL
#include <stdlib.h>
+#include <string.h>
#include "pcap.h"
+#else
+#include <sys/systm.h>
#endif
#include <sys/endian.h>