Browse Source

Adjust teken to allow build as part of loader

Building for loader needs specific headers.
freebsd/current/master
tsoome 10 months ago
parent
commit
8259265ff8
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      sys/teken/teken.c

+ 7
- 2
sys/teken/teken.c View File

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

Loading…
Cancel
Save