Skip to content
Snippets Groups Projects
Commit 174b77e8 authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

ENH: Add support for LastError on HPUX

parent 23d54d58
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,10 @@
#endif //MAC_OS_X_VERSION_MIN_REQUIRED < 1030
#endif // __APPLE__
#ifdef __hpux
#include <errno.h>
#endif //__hpux
// Work-around CMake dependency scanning limitation. This must
// duplicate the above list of headers.
#if 0
......@@ -119,6 +123,13 @@ const char* DynamicLoader::LastError()
* The specified handle is invalid.
*/
if( errno == ENOEXEC
|| errno == ENOSYM
|| errno == EINVAL )
{
return strerror(errno);
}
// else
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment