ENH: Add support for LastError on HPUX
This commit is contained in:
parent
347efdedd5
commit
46096c08a5
|
@ -22,6 +22,10 @@
|
||||||
#endif //MAC_OS_X_VERSION_MIN_REQUIRED < 1030
|
#endif //MAC_OS_X_VERSION_MIN_REQUIRED < 1030
|
||||||
#endif // __APPLE__
|
#endif // __APPLE__
|
||||||
|
|
||||||
|
#ifdef __hpux
|
||||||
|
#include <errno.h>
|
||||||
|
#endif //__hpux
|
||||||
|
|
||||||
// Work-around CMake dependency scanning limitation. This must
|
// Work-around CMake dependency scanning limitation. This must
|
||||||
// duplicate the above list of headers.
|
// duplicate the above list of headers.
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -119,6 +123,13 @@ const char* DynamicLoader::LastError()
|
||||||
* The specified handle is invalid.
|
* The specified handle is invalid.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if( errno == ENOEXEC
|
||||||
|
|| errno == ENOSYM
|
||||||
|
|| errno == EINVAL )
|
||||||
|
{
|
||||||
|
return strerror(errno);
|
||||||
|
}
|
||||||
|
// else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue