From bf5d47a5cee75537c2124ae8e5d61efa27bb7da2 Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Fri, 28 Oct 2022 13:49:37 -0400 Subject: [PATCH] posix: getopt: select getopt by default with CONFIG_POSIX_API The `getopt()` function is part of POSIX and should be available when applications choose to enable general POSIX API support. Signed-off-by: Chris Friedt --- lib/posix/getopt/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/posix/getopt/Kconfig b/lib/posix/getopt/Kconfig index fc0055cf692..72c9961fb90 100644 --- a/lib/posix/getopt/Kconfig +++ b/lib/posix/getopt/Kconfig @@ -4,6 +4,7 @@ menuconfig GETOPT bool "Getopt library support" + default y if POSIX_API help This option adds support of getopt. Different shell backends are use their own instance of getopt to