I got build error on Mac M1
lldb/source/Host/common/OptionParser.cpp:46:10: error: use of undeclared identifier 'getopt_long_only'; did you mean 'getopt_long'?
this patch fixes that, two includes needed and also check if __APPLE__. after that building works.
Please set reviewers correct if its not correct, first patch