Apply patch by Roland Illig posted to tech-pkg to make this package
build under Linux.
This commit is contained in:
parent
2ce0c09152
commit
16b0bc5692
3 changed files with 23 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue