--- boost_1_59_0\libs\program_options\src\parsers.cpp 2015-06-08 23:54:19.000000000 -0700 +++ boost_1_59_0/libs/program_options/src/parsers.cpp 2015-08-28 09:51:53.161588300 -0700 @@ -54,11 +54,15 @@ #if defined(__MWERKS__) #include #else -#if !defined(_WIN32) || defined(__COMO_VERSION__) +#if defined(__VXWORKS__) +extern const char** environ; +#else +#if !defined(_WIN32) || defined(__COMO_VERSION__) extern char** environ; #endif #endif #endif +#endif using namespace std; @@ -190,8 +194,11 @@ const function1& name_mapper) { parsed_options result(&desc); - +#ifdef __VXWORKS__ + for(environment_iterator i((char**)environ), e; i != e; ++i) { +#else for(environment_iterator i(environ), e; i != e; ++i) { +#endif string option_name = name_mapper(i->first); if (!option_name.empty()) {