summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-10-26 20:39:57 +0000
committerjoerg <joerg@pkgsrc.org>2012-10-26 20:39:57 +0000
commite6c606e9ad14aed43506a17e1f2ca8000b46af7f (patch)
treeef609faa34b5c60a6276fca0260149f97e94f0eb /math
parentc59ec04d09e60fd65fd4e733497dd3ec5901fd33 (diff)
downloadpkgsrc-e6c606e9ad14aed43506a17e1f2ca8000b46af7f.tar.gz
Fix missing includes. Add missing value in return.
Diffstat (limited to 'math')
-rw-r--r--math/xlife/distinfo6
-rw-r--r--math/xlife/patches/patch-lifeconv.c22
-rw-r--r--math/xlife/patches/patch-main.c12
-rw-r--r--math/xlife/patches/patch-tile.c12
-rw-r--r--math/xlife/patches/patch-utils.c12
5 files changed, 63 insertions, 1 deletions
diff --git a/math/xlife/distinfo b/math/xlife/distinfo
index f87b34f5812..c8ae80065d1 100644
--- a/math/xlife/distinfo
+++ b/math/xlife/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 12:06:58 agc Exp $
+$NetBSD: distinfo,v 1.5 2012/10/26 20:39:57 joerg Exp $
SHA1 (xlife-5.0.tar.gz) = 168edb2c8bdeb1689fea82c56db76e85aeeed43e
RMD160 (xlife-5.0.tar.gz) = cbfcc570832337ba51703ad5fe86822aa0c5ad7d
@@ -8,3 +8,7 @@ SHA1 (patch-ab) = 891c098845652ad9f172b3693cdf416685e9a960
SHA1 (patch-ac) = 952eb7c45be5cb767cd98e028f7305ea7efc249f
SHA1 (patch-ad) = 07f653049e43dc9bf2681d32a6357421add9357e
SHA1 (patch-ae) = 119164be84be7fa0b00f9c783a492a2a1d81092e
+SHA1 (patch-lifeconv.c) = 9e943c035284a89bef68fcdaeaa45535ecce2def
+SHA1 (patch-main.c) = 970110bf3da87617c389d3f46e456a2d2256d998
+SHA1 (patch-tile.c) = ec40288864b143cacab84ee76f5fc2bd3117b14d
+SHA1 (patch-utils.c) = 790861f598b30c1fc104479bc744be31942a9daa
diff --git a/math/xlife/patches/patch-lifeconv.c b/math/xlife/patches/patch-lifeconv.c
new file mode 100644
index 00000000000..f29b16ba68a
--- /dev/null
+++ b/math/xlife/patches/patch-lifeconv.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-lifeconv.c,v 1.1 2012/10/26 20:39:57 joerg Exp $
+
+--- lifeconv.c.orig 2012-10-26 14:12:40.000000000 +0000
++++ lifeconv.c
+@@ -25,6 +25,8 @@
+ */
+ #include <stdio.h>
+ #include <string.h>
++#include <stdlib.h>
++#include <unistd.h>
+
+ typedef int bool;
+ #define TRUE 1
+@@ -116,7 +118,7 @@ FILE *ofp;
+ linenum++;
+ }
+
+- return;
++ return mode;
+ }
+
+
diff --git a/math/xlife/patches/patch-main.c b/math/xlife/patches/patch-main.c
new file mode 100644
index 00000000000..fa5ca7b4b9e
--- /dev/null
+++ b/math/xlife/patches/patch-main.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-main.c,v 1.1 2012/10/26 20:39:57 joerg Exp $
+
+--- main.c.orig 2012-10-26 14:13:43.000000000 +0000
++++ main.c
+@@ -27,6 +27,7 @@
+ #include <X11/Xatom.h>
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include "defs.h"
+ #include "tile.h"
diff --git a/math/xlife/patches/patch-tile.c b/math/xlife/patches/patch-tile.c
new file mode 100644
index 00000000000..750460a5e35
--- /dev/null
+++ b/math/xlife/patches/patch-tile.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-tile.c,v 1.1 2012/10/26 20:39:57 joerg Exp $
+
+--- tile.c.orig 2012-10-26 14:13:23.000000000 +0000
++++ tile.c
+@@ -61,6 +61,7 @@
+ */
+
+ #include <stddef.h> /* we need offsetof() */
++#include <stdlib.h>
+ #include "defs.h"
+ #include "data.h"
+ #include "tile.h"
diff --git a/math/xlife/patches/patch-utils.c b/math/xlife/patches/patch-utils.c
new file mode 100644
index 00000000000..0a135d86d13
--- /dev/null
+++ b/math/xlife/patches/patch-utils.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-utils.c,v 1.1 2012/10/26 20:39:57 joerg Exp $
+
+--- utils.c.orig 2012-10-26 14:13:06.000000000 +0000
++++ utils.c
+@@ -20,6 +20,7 @@
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
++#include <stdlib.h>
+ #include "defs.h"
+ #include "tile.h"
+ #include <pwd.h>