summaryrefslogtreecommitdiff
path: root/sys/netinet/fil.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-24 17:56:23 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-24 17:56:23 +0000
commit1f9d4094d1fb91fa5a63656ab4384b57fc9ae32c (patch)
tree602d01719430d0260205dac9848519374b4f34ed /sys/netinet/fil.c
parent796a6322527239219dd4ffaf00b75f894e245d4e (diff)
<sys/dir.h> is for use as a compatibility interface only. Warn if
included by kernel modules, and also remove use from any modules that currently attempt to use it.
Diffstat (limited to 'sys/netinet/fil.c')
-rw-r--r--sys/netinet/fil.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/fil.c b/sys/netinet/fil.c
index 2c0f77c1cba..279e583b9f3 100644
--- a/sys/netinet/fil.c
+++ b/sys/netinet/fil.c
@@ -8,7 +8,7 @@
#if 0
#ifndef lint
static char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-1996 Darren Reed";
-static char rcsid[] = "$OpenBSD: fil.c,v 1.6 1996/10/08 07:33:24 niklas Exp $";
+static char rcsid[] = "$OpenBSD: fil.c,v 1.7 1996/10/24 17:56:20 tholo Exp $";
#endif
#endif
@@ -25,7 +25,11 @@ static char rcsid[] = "$OpenBSD: fil.c,v 1.6 1996/10/08 07:33:24 niklas Exp $";
#endif
#include <sys/uio.h>
#if !defined(__SVR4) && !defined(__svr4__)
-# include <sys/dir.h>
+# if defined(__OpenBSD__)
+# include <sys/dirent.h>
+# else
+# include <sys/dir.h>
+# endif
# include <sys/mbuf.h>
#else
# include <sys/byteorder.h>