From ddfedec2f91aa67cfc060ab35398e08ec1b1e37d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 19 May 2024 19:08:13 -0400 Subject: build: Export sys/tty.h Signed-off-by: Ian Moffett --- sys/include/sys/tty.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/include') diff --git a/sys/include/sys/tty.h b/sys/include/sys/tty.h index 342a1a7..a4595d5 100644 --- a/sys/include/sys/tty.h +++ b/sys/include/sys/tty.h @@ -30,14 +30,16 @@ #ifndef _SYS_TTY_H_ #define _SYS_TTY_H_ -#include #include +#if defined(_KERNEL) +#include #include #include #include +#endif +#if defined(_KERNEL) #define TTY_RING_SIZE 32 - #define TTY_SOURCE_RAW 0x0001U /* Raw text */ #define TTY_SOURCE_DEV 0x0002U /* Input from device (e.g keyboard) */ @@ -64,4 +66,5 @@ int tty_putc(struct tty *tty, int c, int flags); int tty_putstr(struct tty *tty, const char *s, size_t count); ssize_t tty_flush(struct tty *tty); +#endif /* defined(_KERNEL) */ #endif /* !_SYS_TTY_H_ */ -- cgit v1.2.3