Explorar o código

typedef in_port_t to unsigned short int when building for ANDROID.

Scott Nations %!s(int64=11) %!d(string=hai) anos
pai
achega
28e896c090
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/civetweb.c

+ 4 - 0
src/civetweb.c

@@ -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>