summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Cooper <gentoo@lakedaemon.net>2012-10-21 21:37:29 -0400
committerJason Cooper <gentoo@lakedaemon.net>2012-10-21 21:37:29 -0400
commit01f0c78471d0519bbfe455e78141a1144ae2303e (patch)
tree253261c5605e4a5a1fc911ed1ffe6aa86c9801d3 /app-admin/ccze/files/ccze-fbsd.patch
parentapp-text/tree: build on ~x64-macos (diff)
downloadlogan-master.tar.gz
logan-master.tar.bz2
logan-master.zip
app-admin/ccze: build on ~x64-macosHEADmaster
Signed-off-by: Jason Cooper <gentoo@lakedaemon.net>
Diffstat (limited to 'app-admin/ccze/files/ccze-fbsd.patch')
-rw-r--r--app-admin/ccze/files/ccze-fbsd.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/app-admin/ccze/files/ccze-fbsd.patch b/app-admin/ccze/files/ccze-fbsd.patch
new file mode 100644
index 0000000..d1f684a
--- /dev/null
+++ b/app-admin/ccze/files/ccze-fbsd.patch
@@ -0,0 +1,25 @@
+--- src/ccze-compat.h.old 2006-10-13 12:50:16 +0200
++++ src/ccze-compat.h 2006-10-13 12:49:21 +0200
+@@ -29,6 +29,11 @@
+ #include <stddef.h>
+ #include <stdio.h>
+
++# ifndef __error_t_defined
++typedef int error_t;
++# define __error_t_defined 1
++# endif
++
+ #ifndef HAVE_STRNDUP
+ char *strndup (const char *s, size_t size);
+ #endif
+--- src/ccze-compat.c.old 2006-10-13 12:51:35 +0200
++++ src/ccze-compat.c 2006-10-13 12:51:44 +0200
+@@ -275,7 +275,7 @@
+ char **valuep)
+ {
+ int i = getsubopt (optionp, tokens, valuep);
+-#if HAVE_SUBOPTARg
++#if HAVE_SUBOPTARG
+ if (!*valuep && suboptarg)
+ *valuep = strdup (suboptarg);
+ #endif