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 <cfriedt@meta.com>
1 file changed