summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-07-09 17:17:03 +0000
committerzuntum <zuntum>2001-07-09 17:17:03 +0000
commit82709a9cb20a9cc378453f895bb180e3600f92ae (patch)
treeaeaaceaf10dc746d4fff832dc948f75ca3da12f3 /devel
parentbebb9fe5f795da977105f7a9549bca25e2eab850 (diff)
downloadpkgsrc-82709a9cb20a9cc378453f895bb180e3600f92ae.tar.gz
o rework patch-aa so it adds support for FreeBSD and OpenBSD, too;
no work at all, just different #ifdef. The patch has been sent back to the author
Diffstat (limited to 'devel')
-rw-r--r--devel/pardiff/distinfo4
-rw-r--r--devel/pardiff/patches/patch-aa10
2 files changed, 7 insertions, 7 deletions
diff --git a/devel/pardiff/distinfo b/devel/pardiff/distinfo
index 7944f76c500..03903037381 100644
--- a/devel/pardiff/distinfo
+++ b/devel/pardiff/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2001/07/09 09:56:30 zuntum Exp $
+$NetBSD: distinfo,v 1.2 2001/07/09 17:17:03 zuntum Exp $
SHA1 (pardiff-0.9.3.tar.gz) = 263fdb4f3fb4f871ea50366e291141f354dd4535
Size (pardiff-0.9.3.tar.gz) = 37383 bytes
-SHA1 (patch-aa) = b0cab40d49c9095d51f6098f15dd4fa95545e782
+SHA1 (patch-aa) = 2dd86e2e7303fd20797ad18dfbd43d4fa4597580
SHA1 (patch-ab) = 3518faae523e57073d7265a96119b1e67563ae7b
diff --git a/devel/pardiff/patches/patch-aa b/devel/pardiff/patches/patch-aa
index 6a5324c61c3..681025ca955 100644
--- a/devel/pardiff/patches/patch-aa
+++ b/devel/pardiff/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
+$NetBSD: patch-aa,v 1.2 2001/07/09 17:17:04 zuntum Exp $
--- pardiff/pardiff.c.orig Sat Jul 7 07:54:35 2001
+++ pardiff/pardiff.c
@@ -6,7 +6,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
/* include files to determine the width of the output terminal */
#include <fcntl.h>
-+#ifdef __NetBSD__
++#if defined __NetBSD__ || defined __FreeBSD__ || defined __OpenBSD__
+#include <sys/ttycom.h>
+#else
#include <termio.h>
@@ -18,10 +18,10 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
* Preprocess lines to get a consistent EOL
*/
if (convertCrlf) {
-+#ifndef __NetBSD__
- line_len = strnlen(nextline, PARDIFF_LINE_BUF_SIZE);
-+#else
++#if defined __NetBSD__ || defined __FreeBSD__ || defined __OpenBSD__
+ line_len = strlen(nextline);
++#else
+ line_len = strnlen(nextline, PARDIFF_LINE_BUF_SIZE);
+#endif
if (line_len > 2 && nextline[line_len - 2] == 0xd) {
nextline[line_len - 2] = '\n';