Created
July 22, 2013 20:24
-
-
Save danslo/6057325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git hphp/util/embedded_data.cpp hphp/util/embedded_data.cpp | |
| index 6b16dc9..a7da200 100644 | |
| --- hphp/util/embedded_data.cpp | |
| +++ hphp/util/embedded_data.cpp | |
| @@ -78,7 +78,7 @@ bool get_embedded_data(const char *section, embedded_data* desc) { | |
| #else // __APPLE__ | |
| const struct section_64 *sect = getsectbyname("__text", section); | |
| if (sect) { | |
| - string path = current_executable(); | |
| + std::string path = current_executable_path(); | |
| if (!path.empty()) { | |
| desc->m_filename = path; | |
| } else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment