mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-12 08:11:05 +00:00
Use getexecname() on Solaris (GH #)
This commit is contained in:
parent
60ffc2ec01
commit
748ebe6328
2
test.cpp
2
test.cpp
@ -155,6 +155,8 @@ int scoped_main(int argc, char *argv[])
|
||||
#if defined(AT_EXECFN)
|
||||
if (getauxval(AT_EXECFN))
|
||||
g_argvPathHint = getauxval(AT_EXECFN);
|
||||
#elif defined(sun) || defined(__sun)
|
||||
g_argvPathHint = getexecname();
|
||||
#endif
|
||||
std::string::size_type pos = g_argvPathHint.find_last_of("\\/");
|
||||
if (pos != std::string::npos)
|
||||
|
Loading…
x
Reference in New Issue
Block a user