Fix OS X build.
authorCarl Hetherington <cth@carlh.net>
Wed, 28 Oct 2015 12:48:22 +0000 (12:48 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 28 Oct 2015 12:48:22 +0000 (12:48 +0000)
src/lib/cross.cc

index 02cdfd444d81b0598a5875ac074169683ff5b12a..24abf2c0a99a64a74df01f814394f7417148a7cc 100644 (file)
@@ -56,6 +56,7 @@ using std::ifstream;
 using std::string;
 using std::wstring;
 using std::make_pair;
+using std::runtime_error;
 using boost::shared_ptr;
 
 /** @param s Number of seconds to sleep for */
@@ -140,7 +141,7 @@ app_contents ()
        uint32_t size = 1024;
        char buffer[size];
        if (_NSGetExecutablePath (buffer, &size)) {
-               throw StringError ("_NSGetExecutablePath failed");
+               throw runtime_error ("_NSGetExecutablePath failed");
        }
 
        boost::filesystem::path path (buffer);