svn commit: r351881 - head/sys/teken

Toomas Soome tsoome at FreeBSD.org
Thu Sep 5 18:07:41 UTC 2019


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,...)


More information about the svn-src-head mailing list