Skip to content

Commit 913c740

Browse files
committed
add android patch file to libcurl
1 parent b1f48d4 commit 913c740

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

build/android.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cfg_default_build_arches="all"
44
cfg_default_build_mode="release"
55
cfg_default_build_libraries="all"
66
#specific default values
7-
cfg_default_build_api=21
7+
cfg_default_build_api=9
88
cfg_default_gcc_version=4.9
99
cfg_arm_alias_folder_name="armeabi"
1010
cfg_armv7_alias_folder_name="armeabi-v7a"

contrib/src/curl/android.patch

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/lib/curl_config.h b/lib/curl_config.h
2+
index 6acb5e4..e795bf3 100644
3+
--- a/lib/curl_config.h
4+
+++ b/lib/curl_config.h
5+
@@ -199,8 +199,6 @@
6+
/* Define to 1 if the getaddrinfo function is threadsafe. */
7+
#define HAVE_GETADDRINFO_THREADSAFE 1
8+
9+
-/* Define to 1 if you have the `geteuid' function. */
10+
-#define HAVE_GETEUID 1
11+
12+
/* Define to 1 if you have the gethostbyaddr function. */
13+
#define HAVE_GETHOSTBYADDR 1
14+
@@ -250,11 +248,6 @@
15+
/* Define to 1 if you have the `getprotobyname' function. */
16+
#define HAVE_GETPROTOBYNAME 1
17+
18+
-/* Define to 1 if you have the `getpwuid' function. */
19+
-#define HAVE_GETPWUID 1
20+
-
21+
-/* Define to 1 if you have the `getpwuid_r' function. */
22+
-#define HAVE_GETPWUID_R 1
23+
24+
/* Define to 1 if you have the `getrlimit' function. */
25+
#define HAVE_GETRLIMIT 1

contrib/src/curl/rules.mak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ DEPS_curl = openssl $(DEPS_openssl)
2121
cd $< && $(HOSTVARS_PIC) ./configure $(HOSTCONF) \
2222
--with-ssl \
2323
--with-zlib \
24+
25+
# ifdef HAVE_ANDROID
26+
# $(APPLY) $(SRC)/curl/android.patch
27+
# endif
2428
cd $< && $(MAKE)
2529
cd $< && $(MAKE) install
2630
touch $@

0 commit comments

Comments
 (0)