Use <sys/param.h> instead of <osreldate.h> within the kernel.

PR:		26218
Submitted by:	markush@acc.umu.se
This commit is contained in:
Archie Cobbs 2001-04-21 17:56:36 +00:00
parent 12a56c98bb
commit 550ba75248
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41767

View file

@ -13,27 +13,26 @@ diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_os.h work.
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
@@ -69,6 +68,12 @@
@@ -69,6 +68,11 @@
#include <dirent.h>
#endif
+#include <osreldate.h>
+
+#if defined(KERNEL) || defined(_KERNEL)
+#include <sys/cdefs.h>
+#endif
+
+#include <sys/param.h>
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/time.h>
@@ -78,15 +82,20 @@
@@ -78,15 +82,19 @@
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/syslog.h>
-#include <sys/param.h>
+#if defined(KERNEL) || defined(_KERNEL) || __FreeBSD_version < 410000
+#include <sys/socketvar.h>
+#endif
#include <sys/param.h>
#include <sys/uio.h>
#include <sys/file.h>
#include <sys/sockio.h>