from the manpage :
(Resetting to 0 forces the invocation of an internal initialization routine that rechecks POSIXLY_CORRECT and
checks for GNU extensions in optstring.)
smpi_trace_call_location_t trace_call_loc_;
s4u::ActorPtr actor_ = nullptr;
smpi_privatization_region_t privatized_region_ = nullptr;
- int optind = 1; /*for getopt replacement */
+#ifdef __linux__
+ int optind_ = 0; /*for getopt replacement */
+#else
+ int optind_ = 1; /*for getopt replacement */
+#endif
std::string tracing_category_ = "";
#if HAVE_PAPI
int ActorExt::get_optind()
{
- return optind;
+ return optind_;
}
void ActorExt::set_optind(int new_optind)
{
- optind = new_optind;
+ optind_ = new_optind;
}
} // namespace smpi