diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-11 14:46:35 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-11 14:46:35 +0000 |
commit | 7f721af138a8ba4c6d6fe9199b6b120c851dd671 (patch) | |
tree | 665b33768afc674b9b609fbac2440184c85caed3 /graphics/urt/patches | |
parent | 4bcf6f1f7aa828ca0dbb18a3f720a7c895f0ae72 (diff) | |
download | pkgsrc-7f721af138a8ba4c6d6fe9199b6b120c851dd671.tar.gz |
Fix errno. On DragonFly, initialise the rle_dflt_hdr at runtime with
stdout, it can't be computed at link time.
Diffstat (limited to 'graphics/urt/patches')
-rw-r--r-- | graphics/urt/patches/patch-ah | 14 | ||||
-rw-r--r-- | graphics/urt/patches/patch-av | 33 | ||||
-rw-r--r-- | graphics/urt/patches/patch-aw | 12 | ||||
-rw-r--r-- | graphics/urt/patches/patch-ax | 13 |
4 files changed, 65 insertions, 7 deletions
diff --git a/graphics/urt/patches/patch-ah b/graphics/urt/patches/patch-ah index 4543b2b7db8..b2a2533f84d 100644 --- a/graphics/urt/patches/patch-ah +++ b/graphics/urt/patches/patch-ah @@ -1,19 +1,19 @@ -$NetBSD: patch-ah,v 1.3 1999/11/22 11:11:33 agc Exp $ +$NetBSD: patch-ah,v 1.4 2006/05/11 14:46:35 joerg Exp $ ---- tools/into.c Wed Nov 25 23:51:32 1998 -+++ tools/into.c Wed Nov 25 23:58:09 1998 -@@ -41,7 +41,10 @@ +--- tools/into.c.orig 1992-04-30 14:10:15.000000000 +0000 ++++ tools/into.c +@@ -40,8 +40,9 @@ static char temp[] = "intoXXXXXXXX"; + static char buf[MAXPATHLEN+1]; short forceflg; /* overwrite an unwritable file? */ - extern int errno; -+ +-extern int errno; +#ifndef BSD extern char *sys_errlist[]; +#endif void main(argc, argv) -@@ -72,7 +75,7 @@ +@@ -72,7 +73,7 @@ char **argv; exit(1); } diff --git a/graphics/urt/patches/patch-av b/graphics/urt/patches/patch-av new file mode 100644 index 00000000000..e62a8f94651 --- /dev/null +++ b/graphics/urt/patches/patch-av @@ -0,0 +1,33 @@ +$NetBSD: patch-av,v 1.1 2006/05/11 14:46:35 joerg Exp $ + +--- lib/rle_global.c.orig 1992-01-28 18:23:03.000000000 +0000 ++++ lib/rle_global.c +@@ -76,7 +76,11 @@ rle_hdr rle_dflt_hdr = { + 8, /* cmaplen (log2 of length of color map) */ + NULL, /* pointer to color map */ + NULL, /* pointer to comment strings */ ++#if defined(__DragonFly__) ++ NULL, /* output file, overriden with stdout at startup */ ++#else + stdout, /* output file */ ++#endif + { 7 }, /* RGB channels only */ + 0L, /* Can't free name and file fields. */ + "Urt", /* Default "program name". */ +@@ -85,6 +89,16 @@ rle_hdr rle_dflt_hdr = { + /* Can't initialize the union */ + }; + ++#if defined(__DragonFly__) ++static void _rle_init(void) __attribute__((__constructor__)); ++ ++static void ++_rle_init(void) ++{ ++ rle_dflt_hdr.rle_file = stdout; ++} ++#endif ++ + /* ARGSUSED */ + void + NullputEof(the_hdr) diff --git a/graphics/urt/patches/patch-aw b/graphics/urt/patches/patch-aw new file mode 100644 index 00000000000..ab228602ec9 --- /dev/null +++ b/graphics/urt/patches/patch-aw @@ -0,0 +1,12 @@ +$NetBSD: patch-aw,v 1.1 2006/05/11 14:46:35 joerg Exp $ + +--- lib/rle_open_f.c.orig 2006-05-11 14:24:27.000000000 +0000 ++++ lib/rle_open_f.c +@@ -256,7 +256,6 @@ int *pid; + int pipefd[2]; + int i; + char *argv[4]; +- extern int errno; + + /* Check args. */ + if ( *mode != 'r' && *mode != 'w' ) diff --git a/graphics/urt/patches/patch-ax b/graphics/urt/patches/patch-ax new file mode 100644 index 00000000000..4912922c247 --- /dev/null +++ b/graphics/urt/patches/patch-ax @@ -0,0 +1,13 @@ +$NetBSD: patch-ax,v 1.1 2006/05/11 14:46:35 joerg Exp $ + +--- cnv/wasatchrle.c.orig 2006-05-11 14:25:44.000000000 +0000 ++++ cnv/wasatchrle.c +@@ -32,8 +32,6 @@ + #include <errno.h> + #include "rle.h" + +-extern int errno; +- + /* "short" in our world is 16 bits. Beware of swyte-bopping. */ + + struct was_head { |