summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-27 23:22:42 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-27 23:22:42 +0000
commit08eb37a688e3a614902ab57e25624e4949380d34 (patch)
treec7cd2502e95d3a9efa2bc3c31149340a958af9bd
parent1474faab25ee0d59f75c450abe47542f0747e21d (diff)
downloadcryptopp-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.cpp2
-rw-r--r--wait.h8
2 files changed, 7 insertions, 3 deletions
diff --git a/wait.cpp b/wait.cpp
index 1987858..c1bfa00 100644
--- a/wait.cpp
+++ b/wait.cpp
@@ -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
diff --git a/wait.h b/wait.h
index 045afbc..3a62746 100644
--- a/wait.h
+++ b/wait.h
@@ -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"