Revert "posix: getopt: move declarations to unistd.h"

This seems to have caused build failures in spite of CI being
green in PR 52653.

This reverts commit fc92eb1b37ec00c492d125f69f2514f005c130c0.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
5 files changed