Browse Source

typedef in_port_t to unsigned short int when building for ANDROID.

Scott Nations 11 năm trước cách đây
mục cha
commit
28e896c090
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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>