Skip to content

Instantly share code, notes, and snippets.

@danslo
Created July 22, 2013 20:24
Show Gist options
  • Save danslo/6057325 to your computer and use it in GitHub Desktop.
Save danslo/6057325 to your computer and use it in GitHub Desktop.
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