summaryrefslogtreecommitdiff
path: root/lang/cu-prolog
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-07-04 16:18:14 +0000
committerjschauma <jschauma>2004-07-04 16:18:14 +0000
commit22ab7cfc9f10982e88ca943197ffb12d47137a9f (patch)
tree2002850cde99c9ed77ba5da42c188cd338b132e8 /lang/cu-prolog
parent8a3f91c929de207e3445151327034a2048b697b3 (diff)
downloadpkgsrc-22ab7cfc9f10982e88ca943197ffb12d47137a9f.tar.gz
Apply patch by Roland Illig posted to tech-pkg to make this package
build under Linux.
Diffstat (limited to 'lang/cu-prolog')
-rw-r--r--lang/cu-prolog/distinfo6
-rw-r--r--lang/cu-prolog/patches/patch-ab13
-rw-r--r--lang/cu-prolog/patches/patch-ae15
3 files changed, 23 insertions, 11 deletions
diff --git a/lang/cu-prolog/distinfo b/lang/cu-prolog/distinfo
index 29395d31822..5303e3d8edc 100644
--- a/lang/cu-prolog/distinfo
+++ b/lang/cu-prolog/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 15:00:49 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/07/04 16:18:14 jschauma Exp $
SHA1 (cu-prolog-3.94/cupsrc.tar.gz) = bc292c39bf58d142e8810e0c7e7aa25a5e44ad16
Size (cu-prolog-3.94/cupsrc.tar.gz) = 211847 bytes
SHA1 (cu-prolog-3.94/cupdoc.tar.gz) = 1d63be56d044fc51fc034c248e2d0cbca35756f3
Size (cu-prolog-3.94/cupdoc.tar.gz) = 136474 bytes
SHA1 (patch-aa) = 5a62457aa989665b52f8413ae649b4b2eb4a7e0e
-SHA1 (patch-ab) = 62fc69c780a9b3986c0beba95b67298ce135f938
+SHA1 (patch-ab) = 7789b243cb2c5a5054f7492930300e2630398715
SHA1 (patch-ac) = e30a669d5f455ad1063a3e53244c429d5b981625
SHA1 (patch-ad) = 3099002c96faf988499f5f7cde79dd8416aa360d
-SHA1 (patch-ae) = 57d44282f75ab97ee5d75f3bfc30c332e17e9367
+SHA1 (patch-ae) = aff538343572cf4e786177aa27d1c934255646b8
diff --git a/lang/cu-prolog/patches/patch-ab b/lang/cu-prolog/patches/patch-ab
index 2022ba97d90..29c47360cf7 100644
--- a/lang/cu-prolog/patches/patch-ab
+++ b/lang/cu-prolog/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.2 2001/02/24 15:45:52 jtb Exp $
+$NetBSD: patch-ab,v 1.3 2004/07/04 16:18:14 jschauma Exp $
---- include.h.orig Fri Jan 27 07:38:48 1995
-+++ include.h
+--- include.h.orig 1995-01-27 08:38:48.000000000 +0100
++++ include.h 2004-07-03 21:54:12.000000000 +0200
@@ -21,6 +21,7 @@
#include <stdio.h>
@@ -22,11 +22,14 @@ $NetBSD: patch-ab,v 1.2 2001/02/24 15:45:52 jtb Exp $
#define KANJI 1 /* 1: allow EUC Kanji for str functions */
/* Tee print macro */
-@@ -135,8 +140,13 @@
+@@ -135,8 +140,16 @@
#define head_of_list(Term) (((struct clause *)Term)->c_form)
#define tail_of_list(Term) ((struct term *)((struct clause *)Term)->c_link)
-+#if (defined(BSD) && BSD >= 199306)
++#if defined(__linux__)
++#define is_readable(FP) (!(FP->_flags & _IO_NO_READS))
++#define is_writable(FP) (!(FP->_flags & _IO_NO_WRITES))
++#elif (defined(BSD) && BSD >= 199306)
+#define is_readable(FP) (FP->_flags & __SRD)
+#define is_writable(FP) (FP->_flags & __SWR)
+#else
diff --git a/lang/cu-prolog/patches/patch-ae b/lang/cu-prolog/patches/patch-ae
index 68eda71c15c..fbf9ccb9a30 100644
--- a/lang/cu-prolog/patches/patch-ae
+++ b/lang/cu-prolog/patches/patch-ae
@@ -1,7 +1,16 @@
-$NetBSD: patch-ae,v 1.2 2001/02/24 15:45:53 jtb Exp $
+$NetBSD: patch-ae,v 1.3 2004/07/04 16:18:14 jschauma Exp $
---- main.c.orig Wed Jul 7 02:26:00 1999
-+++ main.c Wed Jul 7 02:27:38 1999
+--- main.c.orig 1995-01-27 08:38:48.000000000 +0100
++++ main.c 2004-07-03 21:32:55.000000000 +0200
+@@ -33,7 +33,7 @@
+
+ struct itrace *newflist_save;
+
+-void main(argc,argv)
++int main(argc,argv)
+ int argc;
+ char *argv[];
+ {
@@ -303,13 +303,16 @@
void heap_realloc() /* reallocate system/user heaps */