aboutsummaryrefslogtreecommitdiffstats
path: root/packages/curl/curl-7.12.2/m4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/curl/curl-7.12.2/m4.patch')
-rw-r--r--packages/curl/curl-7.12.2/m4.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/packages/curl/curl-7.12.2/m4.patch b/packages/curl/curl-7.12.2/m4.patch
index e69de29bb2..c9a9eec28d 100644
--- a/packages/curl/curl-7.12.2/m4.patch
+++ b/packages/curl/curl-7.12.2/m4.patch
@@ -0,0 +1,53 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- curl-7.12.0/acinclude.m4~m4 2004-05-07 20:29:02.000000000 +0200
++++ curl-7.12.0/acinclude.m4 2004-06-07 19:03:47.000000000 +0200
+@@ -409,45 +409,7 @@
+
+ dnl determine if this strerror_r() is glibc or POSIX
+ AC_MSG_CHECKING([for a glibc strerror_r API])
+- AC_TRY_RUN([
+-#include <string.h>
+-#include <errno.h>
+-int
+-main () {
+- char buffer[1024]; /* big enough to play with */
+- char *string =
+- strerror_r(EACCES, buffer, sizeof(buffer));
+- /* this should've returned a string */
+- if(!string || !string[0])
+- return 99;
+- return 0;
+-}
+-],
+- AC_DEFINE(HAVE_GLIBC_STRERROR_R, 1, [we have a glibc-style strerror_r()])
+- AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no])
+- )
+-
+ AC_MSG_CHECKING([for a POSIX strerror_r API])
+- AC_TRY_RUN([
+-#include <string.h>
+-#include <errno.h>
+-int
+-main () {
+- char buffer[1024]; /* big enough to play with */
+- int error =
+- strerror_r(EACCES, buffer, sizeof(buffer));
+- /* This should've returned zero, and written an error string in the
+- buffer.*/
+- if(!buffer[0] || error)
+- return 99;
+- return 0;
+-}
+-],
+- AC_DEFINE(HAVE_POSIX_STRERROR_R, 1, [we have a POSIX-style strerror_r()])
+- AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no])
+- )
+
+ fi
+