From 01ee1789d6aa7294e5966a97f8d29387f6f81699 Mon Sep 17 00:00:00 2001 From: emaste Date: Tue, 25 Nov 2014 21:00:58 +0000 Subject: Import LLDB as of upstream SVN r216948 (git 50f7fe44) This corresponds with the branchpoint for the 3.5 release. A number of files not required for the FreeBSD build have been removed. Sponsored by: DARPA, AFRL --- source/Host/common/OptionParser.cpp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'source/Host/common/OptionParser.cpp') diff --git a/source/Host/common/OptionParser.cpp b/source/Host/common/OptionParser.cpp index cf13359..a91e764 100644 --- a/source/Host/common/OptionParser.cpp +++ b/source/Host/common/OptionParser.cpp @@ -8,11 +8,10 @@ //===----------------------------------------------------------------------===// #include "lldb/Host/OptionParser.h" - -#if (!defined( _MSC_VER ) && defined( _WIN32 )) -#define _BSD_SOURCE // Required so that getopt.h defines optreset -#endif #include "lldb/Host/HostGetOpt.h" +#include "lldb/lldb-private-types.h" + +#include using namespace lldb_private; @@ -40,7 +39,19 @@ OptionParser::Parse (int argc, const Option *longopts, int *longindex) { - return getopt_long_only(argc, argv, optstring, (const option*)longopts, longindex); + std::vector