aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/libmicrohttpd/fix-android-include.patch
blob: 10eaa2597990ab52c1bd4db0e9c8532191e2c8d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -ruN src/daemon/daemon.c src/daemon/daemon.c
--- src/daemon/daemon.c	2012-05-07 17:21:43.695832026 -0400
+++ src/daemon/daemon.c	2012-05-07 17:20:20.365832079 -0400
@@ -244,7 +244,9 @@
   MHD_ip_count_lock (daemon);
 
   /* Search for the IP address */
+#if !defined(ANDROID)
   node = (void*)TSEARCH (key, &daemon->per_ip_connection_count, MHD_ip_addr_compare);
+#endif
   if (!node)
     {
 #if HAVE_MESSAGES
@@ -296,7 +298,9 @@
   MHD_ip_count_lock (daemon);
 
   /* Search for the IP address */
+#if !defined(ANDROID)
   node = (void*)TFIND (&search_key, &daemon->per_ip_connection_count, MHD_ip_addr_compare);
+#endif
 
   /* Something's wrong if we couldn't find an IP address
    * that was previously added */
diff -ruN src/include/platform.h src/include/platform.h
--- src/include/platform.h	2012-05-07 17:34:57.345831526 -0400
+++ src/include/platform.h	2012-05-07 17:20:20.375832079 -0400
@@ -53,7 +53,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
-#if !defined(MINGW) && !defined(__SYMBIAN32__)
+#if !defined(MINGW) && !defined(__SYMBIAN32__) && !defined(ANDROID)
 #include <search.h>
 #endif
 #include <stddef.h>