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 --- builddeps/sysexports | 1 + sys/include/sys/tty.h | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/builddeps/sysexports b/builddeps/sysexports index 626cc6c..7069c57 100644 --- a/builddeps/sysexports +++ b/builddeps/sysexports @@ -7,5 +7,6 @@ sys_headers=$(cat < #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