From 3bd926eeef1346c8ed052883ecd2d3828c58e6d5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 12 Sep 2013 23:12:23 +0300 Subject: [PATCH] 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 --- curl/UnpackedTarball_curl.mk | 1 + curl/curl-7.26.0_strlcat.patch | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 curl/curl-7.26.0_strlcat.patch diff --git a/curl/UnpackedTarball_curl.mk b/curl/UnpackedTarball_curl.mk index 70ac67090c7f..f90007f60f0f 100644 --- a/curl/UnpackedTarball_curl.mk +++ b/curl/UnpackedTarball_curl.mk @@ -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,\ diff --git a/curl/curl-7.26.0_strlcat.patch b/curl/curl-7.26.0_strlcat.patch new file mode 100644 index 000000000000..c5536f822641 --- /dev/null +++ b/curl/curl-7.26.0_strlcat.patch @@ -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