summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-25 10:12:18 -0400
committerIan Moffett <ian@osmora.org>2024-04-25 10:12:18 -0400
commit7598b2b65beab04599448d4414c008a498cdc1c3 (patch)
tree61dada48207787992db87c14a11c2743cc01ee83
parent0b38202bc82d4a417fe9fd689ac99f986efb0732 (diff)
kernel: termios: Include stdint.h if not kernel
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/sys/termios.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/sys/termios.h b/sys/include/sys/termios.h
index 6548163..875ee71 100644
--- a/sys/include/sys/termios.h
+++ b/sys/include/sys/termios.h
@@ -30,7 +30,11 @@
#ifndef _SYS_TERMIOS_H_
#define _SYS_TERMIOS_H_
+#if defined(_KERNEL)
#include <sys/types.h>
+#else
+#include <stdint.h>
+#endif
#define NCCS 20