Просмотр исходного кода

typedef in_port_t to unsigned short int when building for ANDROID.

Scott Nations 11 лет назад
Родитель
Сommit
28e896c090
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/civetweb.c

+ 4 - 0
src/civetweb.c

@@ -261,6 +261,10 @@ struct pollfd {
 #include <inttypes.h>
 #include <inttypes.h>
 #include <netdb.h>
 #include <netdb.h>
 
 
+#if defined(ANDROID)
+typedef unsigned short int in_port_t;
+#endif
+
 #include <pwd.h>
 #include <pwd.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <dirent.h>
 #include <dirent.h>