Files
macports-ports/lang/php/files/patch-php71-ext-curl-config.m4.diff
Ryan Schmidt 08cd4de291 php70, php71, php72: Fix implicit function decls
The modified m4 files get installed, so the revision is increased.

See: https://trac.macports.org/ticket/60988
2020-12-30 05:12:42 -06:00

24 lines
736 B
Diff

Fix:
error: implicitly declaring library function 'strncasecmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
https://github.com/php/php-src/commit/1a8df11364292dd3cac2c406a26e4aafaca62d36
--- ext/curl/config.m4.orig 2019-10-22 11:59:47.000000000 -0500
+++ ext/curl/config.m4 2020-12-30 02:23:41.000000000 -0600
@@ -79,6 +79,7 @@
AC_PROG_CPP
AC_MSG_CHECKING([for openssl support in libcurl])
AC_TRY_RUN([
+#include <strings.h>
#include <curl/curl.h>
int main(int argc, char *argv[])
@@ -106,6 +107,7 @@
AC_MSG_CHECKING([for gnutls support in libcurl])
AC_TRY_RUN([
+#include <strings.h>
#include <curl/curl.h>
int main(int argc, char *argv[])