Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2019 18:07:41 +0000 (UTC)
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351881 - head/sys/teken
Message-ID:  <201909051807.x85I7fRd042944@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tsoome
Date: Thu Sep  5 18:07:40 2019
New Revision: 351881
URL: https://svnweb.freebsd.org/changeset/base/351881

Log:
  Adjust teken to allow build as part of loader
  
  Building for loader needs specific headers.

Modified:
  head/sys/teken/teken.c

Modified: head/sys/teken/teken.c
==============================================================================
--- head/sys/teken/teken.c	Thu Sep  5 17:54:57 2019	(r351880)
+++ head/sys/teken/teken.c	Thu Sep  5 18:07:40 2019	(r351881)
@@ -35,7 +35,12 @@
 #include <sys/lock.h>
 #include <sys/systm.h>
 #define	teken_assert(x)		MPASS(x)
-#else /* !(__FreeBSD__ && _KERNEL) */
+#elif defined(__FreeBSD__) && defined(_STANDALONE)
+#include <stand.h>
+#include <sys/limits.h>
+#include <assert.h>
+#define	teken_assert(x)		assert(x)
+#else /* !(__FreeBSD__ && _STANDALONE) */
 #include <sys/types.h>
 #include <assert.h>
 #include <limits.h>
@@ -43,7 +48,7 @@
 #include <stdio.h>
 #include <string.h>
 #define	teken_assert(x)		assert(x)
-#endif /* __FreeBSD__ && _KERNEL */
+#endif /* __FreeBSD__ && _STANDALONE */
 
 /* debug messages */
 #define	teken_printf(x,...)



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