|
@@ -44,7 +44,7 @@
|
|
|
|
|
|
/* Disable WIN32_LEAN_AND_MEAN.
|
|
|
This makes windows.h always include winsock2.h */
|
|
|
-#if defined(WIN32_LEAN_AND_MEAN) && (_MSC_VER <= 1400)
|
|
|
+#if defined(WIN32_LEAN_AND_MEAN)
|
|
|
#undef WIN32_LEAN_AND_MEAN
|
|
|
#endif
|
|
|
|
|
@@ -261,6 +261,10 @@ struct pollfd {
|
|
|
#include <inttypes.h>
|
|
|
#include <netdb.h>
|
|
|
|
|
|
+#if defined(ANDROID)
|
|
|
+typedef unsigned short int in_port_t;
|
|
|
+#endif
|
|
|
+
|
|
|
#include <pwd.h>
|
|
|
#include <unistd.h>
|
|
|
#include <dirent.h>
|