aboutsummaryrefslogtreecommitdiff
path: root/devel/kdesdk3/files/patch-aa
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2001-08-21 08:23:03 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2001-08-21 08:23:03 +0000
commitc845156e7dafd36dd57e0f2aee8acfe86352fd9c (patch)
tree4c8fabab6d006d3861d4a1a5cf94327649e84609 /devel/kdesdk3/files/patch-aa
parent5fd8b1508acb7cba4f74899dde2855703da85405 (diff)
downloadports-c845156e7dafd36dd57e0f2aee8acfe86352fd9c.tar.gz
ports-c845156e7dafd36dd57e0f2aee8acfe86352fd9c.zip
Notes
Diffstat (limited to 'devel/kdesdk3/files/patch-aa')
-rw-r--r--devel/kdesdk3/files/patch-aa27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/kdesdk3/files/patch-aa b/devel/kdesdk3/files/patch-aa
new file mode 100644
index 000000000000..2d65987e5766
--- /dev/null
+++ b/devel/kdesdk3/files/patch-aa
@@ -0,0 +1,27 @@
+--- kbabel/common/libgettext/xmalloc.c.orig Tue Aug 21 11:08:13 2001
++++ kbabel/common/libgettext/xmalloc.c Tue Aug 21 11:09:28 2001
+@@ -26,6 +26,7 @@
+ #endif
+
+ #include <sys/types.h>
++#include <err.h>
+
+ #if STDC_HEADERS
+ # include <stdlib.h>
+@@ -61,7 +62,6 @@
+ The caller may set it to some other value. */
+ int xmalloc_exit_failure = EXIT_FAILURE;
+
+-void error (int, int, const char *, ...);
+
+ static VOID *
+ fixup_null_alloc (n)
+@@ -73,7 +73,7 @@
+ if (n == 0)
+ p = malloc ((size_t) 1);
+ if (p == 0)
+- error (xmalloc_exit_failure, 0, _("Memory exhausted"));
++ err (xmalloc_exit_failure, "Memory exhausted");
+ return p;
+ }
+