diff options
author | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-06-27 23:22:42 +0000 |
---|---|---|
committer | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-06-27 23:22:42 +0000 |
commit | 08eb37a688e3a614902ab57e25624e4949380d34 (patch) | |
tree | c7cd2502e95d3a9efa2bc3c31149340a958af9bd | |
parent | 1474faab25ee0d59f75c450abe47542f0747e21d (diff) | |
download | cryptopp-08eb37a688e3a614902ab57e25624e4949380d34.tar.gz |
Fix compile issue on Android. Fix missing IntToString
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@543 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r-- | wait.cpp | 2 | ||||
-rw-r--r-- | wait.h | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -363,7 +363,7 @@ bool WaitObjectContainer::Wait(unsigned long milliseconds) else if (result == 0) return timeoutIsScheduledEvent; else - throw Err("WaitObjectContainer: select failed with error " + errno); + throw Err("WaitObjectContainer: select failed with error " + IntToString(errno)); } #endif @@ -10,9 +10,13 @@ #include <vector> #ifdef USE_WINDOWS_STYLE_SOCKETS -#include <winsock2.h> +# include <winsock2.h> #else -#include <sys/types.h> +# include <sys/types.h> +#endif + +#if defined(__ANDROID__) +# include <sys/select.h> #endif #include "hrtimer.h" |