If we have strlcat(), we have strlcat(), no need to declare it
The system strlcat() might be some clever built-in or macro thing anyway, and having a bogus duplicate declaration can cause problems. And does, in the iOS 7 SDK. Change-Id: I0aed0ad0f7b96c1c887ed928a2c07fc99bd703f7
This commit is contained in:
@@ -24,6 +24,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,curl,\
|
|||||||
curl/curl-7.26.0_win.patch \
|
curl/curl-7.26.0_win.patch \
|
||||||
curl/curl-7.26.0_mingw.patch \
|
curl/curl-7.26.0_mingw.patch \
|
||||||
curl/curl-7.26.0_win-proxy.patch \
|
curl/curl-7.26.0_win-proxy.patch \
|
||||||
|
curl/curl-7.26.0_strlcat.patch \
|
||||||
))
|
))
|
||||||
ifeq ($(OS),ANDROID)
|
ifeq ($(OS),ANDROID)
|
||||||
$(eval $(call gb_UnpackedTarball_add_patches,curl,\
|
$(eval $(call gb_UnpackedTarball_add_patches,curl,\
|
||||||
|
9
curl/curl-7.26.0_strlcat.patch
Normal file
9
curl/curl-7.26.0_strlcat.patch
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
--- curl-7.26.0/lib/strequal.h
|
||||||
|
+++ misc/build/curl-7.26.0/strequal.h
|
||||||
|
@@ -30,6 +30,5 @@
|
||||||
|
#ifndef HAVE_STRLCAT
|
||||||
|
#define strlcat(x,y,z) Curl_strlcat(x,y,z)
|
||||||
|
#endif
|
||||||
|
-size_t strlcat(char *dst, const char *src, size_t siz);
|
||||||
|
|
||||||
|
#endif
|
Reference in New Issue
Block a user