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:
parent
bf57f81bec
commit
3bd926eeef
2 changed files with 10 additions and 0 deletions
|
@ -24,6 +24,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,curl,\
|
|||
curl/curl-7.26.0_win.patch \
|
||||
curl/curl-7.26.0_mingw.patch \
|
||||
curl/curl-7.26.0_win-proxy.patch \
|
||||
curl/curl-7.26.0_strlcat.patch \
|
||||
))
|
||||
ifeq ($(OS),ANDROID)
|
||||
$(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
|
Loading…
Reference in a new issue