]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Config.uk: Add posix-tty as dependency to stdio
authorAndrei Tatar <andrei@unikraft.io>
Mon, 24 Feb 2025 11:18:16 +0000 (12:18 +0100)
committerRazvan Deaconescu <razvand@unikraft.io>
Tue, 25 Feb 2025 22:53:11 +0000 (00:53 +0200)
This change adds an explicit dependency on posix-tty and its STDIO
option for when the libstdio sub-lib of musl is enabled.
This makes musl's assumption that fds 0, 1, 2 be opened to something
meaningful an explicit configuration requirement on the kernel.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #85

Config.uk

index f44d5a0f43e6e3db79e4dcb9103b606f7cb98514..59639e4b8c9e51f09ea3b0d1b378199a35a81a9e 100644 (file)
--- a/Config.uk
+++ b/Config.uk
@@ -189,6 +189,8 @@ config LIBMUSL_STDIO
   default y
   select LIBMUSL_FENV
   select LIBMUSL_UNISTD
+  select LIBPOSIX_TTY
+  select LIBPOSIX_TTY_STDIO
 
 config LIBMUSL_STDLIB
   bool "libstdlib"