Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 22:33:03 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259203 - head/sys/dev/vt
Message-ID:  <201312102233.rBAMX3AB052736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Dec 10 22:33:02 2013
New Revision: 259203
URL: http://svnweb.freebsd.org/changeset/base/259203

Log:
  The opt_*.h headers must be included before any system header, except
  sys/cdefs.h.  In particular, in case of COMPAT_43, param.h includes
  sys/types.h, which includes sys/select.h, which includes
  sys/_sigset.h.  The _sigset.h customizes the provided definions based
  on COMPAT_43, eliminating osigset_t if symbol is not defined.  The
  sys/proc.h is included after opt_compat.h and needs osigset_t.
  
  Move opt_compat.h inclusion into the right place.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/vt/vt_core.c

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Tue Dec 10 22:13:36 2013	(r259202)
+++ head/sys/dev/vt/vt_core.c	Tue Dec 10 22:33:02 2013	(r259203)
@@ -33,10 +33,9 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
-#include <sys/param.h>
-
 #include "opt_compat.h"
 
+#include <sys/param.h>
 #include <sys/consio.h>
 #include <sys/eventhandler.h>
 #include <sys/fbio.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312102233.rBAMX3AB052736>