summaryrefslogtreecommitdiff
path: root/www/thy
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-19 21:11:25 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-19 21:11:25 +0000
commit3cd0e4673d243258c1cb741e76cdf28c8703797a (patch)
tree6f68e66fd309357b777486353c400a6fc9534e7e /www/thy
parentf6808df1ba3916cb999d11ea1ce3e204bde6f490 (diff)
downloadpkgsrc-3cd0e4673d243258c1cb741e76cdf28c8703797a.tar.gz
Rename gz_header, it conflicts with zlib.h on DragonFly.
Diffstat (limited to 'www/thy')
-rw-r--r--www/thy/distinfo3
-rw-r--r--www/thy/patches/patch-ab26
2 files changed, 28 insertions, 1 deletions
diff --git a/www/thy/distinfo b/www/thy/distinfo
index 2add4408900..b3106a2a5a3 100644
--- a/www/thy/distinfo
+++ b/www/thy/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2005/09/06 15:19:31 adam Exp $
+$NetBSD: distinfo,v 1.5 2006/01/19 21:11:25 joerg Exp $
SHA1 (thy-0.9.4.tar.gz) = e3bae4f3667f98fbc5fc39dc3f61571b524e5dfd
RMD160 (thy-0.9.4.tar.gz) = b64ada0d71d123b0a5300697ae69823ff59e5ee7
Size (thy-0.9.4.tar.gz) = 357776 bytes
SHA1 (patch-aa) = d8b98822747e7d76318e591336b981aea6773c96
+SHA1 (patch-ab) = 1caca0c4c2c6051c9feece3feac7e4189425302c
diff --git a/www/thy/patches/patch-ab b/www/thy/patches/patch-ab
new file mode 100644
index 00000000000..90c3b96b2c2
--- /dev/null
+++ b/www/thy/patches/patch-ab
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1 2006/01/19 21:11:25 joerg Exp $
+
+--- src/gzip.c.orig 2006-01-19 21:02:26.000000000 +0000
++++ src/gzip.c
+@@ -54,7 +54,7 @@
+ * We are going the easy way: no filename, no timestamp, no
+ * nothing. Just a plain dumb gzip header.
+ */
+-static char gz_header[] = {0x1f, 0x8b, Z_DEFLATED, 0, 0, 0, 0, 0, 0, 0x03};
++static char my_gz_header[] = {0x1f, 0x8b, Z_DEFLATED, 0, 0, 0, 0, 0, 0, 0x03};
+
+ /** @internal Opaque type for compressed session data.
+ */
+@@ -118,9 +118,9 @@ thy_zlib_send (session_t *session, void
+ /* Construct gzip header */
+ free (session->body.header.buff);
+ session->body.header.buff =
+- (char *)bhc_malloc (sizeof (gz_header) + 1);
+- memcpy (session->body.header.buff, gz_header, sizeof (gz_header));
+- session->body.header.size = sizeof (gz_header);
++ (char *)bhc_malloc (sizeof (my_gz_header) + 1);
++ memcpy (session->body.header.buff, my_gz_header, sizeof (my_gz_header));
++ session->body.header.size = sizeof (my_gz_header);
+ session->body.header.offset = 0;
+
+ /* Construct gzip footer */