summaryrefslogtreecommitdiff
path: root/textproc/dict-server/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-02 10:55:24 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-02 10:55:24 +0000
commit099afd8990153adda6028f1290f2e137cb8fbd79 (patch)
tree9dda7fd7f36e00bbd1f47503625382f4bb0b054c /textproc/dict-server/patches
parentcba91624643eed555cc3e636e906f771f5844b07 (diff)
downloadpkgsrc-099afd8990153adda6028f1290f2e137cb8fbd79.tar.gz
Don't define alloca on DragonFly and FreeBSD, conflicts with stdlib.h.
Diffstat (limited to 'textproc/dict-server/patches')
-rw-r--r--textproc/dict-server/patches/patch-aa13
-rw-r--r--textproc/dict-server/patches/patch-ab15
2 files changed, 28 insertions, 0 deletions
diff --git a/textproc/dict-server/patches/patch-aa b/textproc/dict-server/patches/patch-aa
new file mode 100644
index 00000000000..3386f132246
--- /dev/null
+++ b/textproc/dict-server/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.4 2006/01/02 10:55:24 joerg Exp $
+
+--- dictP.h.orig 2006-01-02 10:35:42.000000000 +0000
++++ dictP.h
+@@ -68,7 +68,7 @@
+ # pragma alloca
+ # else
+ # ifndef alloca /* predefined by HP cc +Olibcalls */
+-# if !defined(__svr4__) && !defined(__sgi__) /* not on IRIX */
++# if !defined(__svr4__) && !defined(__sgi__) && !defined(__DragonFly__) && !defined(__FreeBSD__) /* not on IRIX */
+ char *alloca ();
+ # endif
+ # endif
diff --git a/textproc/dict-server/patches/patch-ab b/textproc/dict-server/patches/patch-ab
new file mode 100644
index 00000000000..1989a9ec2c3
--- /dev/null
+++ b/textproc/dict-server/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.5 2006/01/02 10:55:24 joerg Exp $
+
+--- libmaa/maaP.h.orig 2006-01-02 10:42:04.000000000 +0000
++++ libmaa/maaP.h
+@@ -41,8 +41,10 @@
+ # pragma alloca
+ # else
+ # ifndef alloca /* predefined by HP cc +Olibcalls */
++# if !defined(__DragonFly__) && !defined(__FreeBSD__)
+ char *alloca ();
+ # endif
++# endif
+ # endif
+ #endif
+