From c323f8035b7acd9e08034bfd02f08759ca20bfc8 Mon Sep 17 00:00:00 2001 From: Aleksandr Rybalko Date: Mon, 9 Dec 2013 15:28:34 +0000 Subject: [PATCH] o Compat options have to be defined before sys/ioccom.h included, so move inclusion of right after sys/param.h. o Only vt_core module use compat options, move it from common header to module. Reported by: Larry Rosenman ler at lerctr dot org Sponsored by: The FreeBSD Foundation --- sys/dev/vt/vt.h | 1 - sys/dev/vt/vt_core.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index bec4e441a10..dfc45424458 100644 --- a/sys/dev/vt/vt.h +++ b/sys/dev/vt/vt.h @@ -46,7 +46,6 @@ #include #include -#include "opt_compat.h" #include "opt_syscons.h" #include "opt_splash.h" diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index c23341d9600..175a49e88d4 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -34,6 +34,9 @@ __FBSDID("$FreeBSD$"); #include + +#include "opt_compat.h" + #include #include #include