mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-27 07:31:35 +00:00
work around strange link error with clang on Mac OS X
This commit is contained in:
parent
822c9f3dbf
commit
e5e8352a32
@ -112,7 +112,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
close(fd);
|
||||
|
||||
std::transform(argv2.begin(), argv2.end(), std::back_inserter(argv3), std::bind(&std::string::c_str, _1));
|
||||
std::transform(argv2.begin(), argv2.end(), std::back_inserter(argv3),
|
||||
[](const std::string& str) { return str.c_str(); });
|
||||
|
||||
argv3.push_back(NULL);
|
||||
|
||||
execvp(argv3[0], const_cast<char*const*>( argv3.data() ));
|
||||
|
Loading…
Reference in New Issue
Block a user