summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorobache <obache>2010-01-09 12:03:03 +0000
committerobache <obache>2010-01-09 12:03:03 +0000
commit291347762153028c8620de2c003ee68e26c8f57e (patch)
tree460c4078962e4b6328333988c6ce0949239674ff /misc
parent301c722ab9988180746a4f5950a793a9ae54cff3 (diff)
downloadpkgsrc-291347762153028c8620de2c003ee68e26c8f57e.tar.gz
Add patch-a{b,c} to avoid conflict with getline(3) defined in IEEE Std 1003.1-2008.
PR#42595.
Diffstat (limited to 'misc')
-rw-r--r--misc/kdrill/distinfo4
-rw-r--r--misc/kdrill/patches/patch-ab15
-rw-r--r--misc/kdrill/patches/patch-ac42
3 files changed, 60 insertions, 1 deletions
diff --git a/misc/kdrill/distinfo b/misc/kdrill/distinfo
index 8fb2b278b9f..367f946351e 100644
--- a/misc/kdrill/distinfo
+++ b/misc/kdrill/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2005/02/24 11:02:54 agc Exp $
+$NetBSD: distinfo,v 1.5 2010/01/09 12:03:03 obache Exp $
SHA1 (kdrill5.11.6.tar.gz) = 8ce3594c81f717a4fd1488a952b0a05111679cd0
RMD160 (kdrill5.11.6.tar.gz) = a2c81fe9490f549940a4eea793af37b56dd2b7e6
Size (kdrill5.11.6.tar.gz) = 182956 bytes
SHA1 (patch-aa) = 42fc93ca33c380cc947a526c97cb887c2e778ebb
+SHA1 (patch-ab) = bacf2be816f63ec072f0a4f4ba4d132691518dab
+SHA1 (patch-ac) = 2f1a6216be59b5fccaa19f7ea124822f412c4317
diff --git a/misc/kdrill/patches/patch-ab b/misc/kdrill/patches/patch-ab
new file mode 100644
index 00000000000..153610f5509
--- /dev/null
+++ b/misc/kdrill/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2010/01/09 12:03:04 obache Exp $
+
+Avoid to conflict with getline(3) defined in IEEE Std 1003.1-2008.
+
+--- externs.h.orig 2001-08-30 22:27:01.000000000 +0000
++++ externs.h
+@@ -30,7 +30,7 @@ extern void SetWidgetHexval(Widget,int);
+
+ /* other "usefull" general functions */
+ extern int xtoi(char *);
+-extern int getline(FILE *, unsigned char *);
++extern int get_line(FILE *, unsigned char *);
+ extern void setstatus(char *);
+
+ extern int FindIndex(char *);
diff --git a/misc/kdrill/patches/patch-ac b/misc/kdrill/patches/patch-ac
new file mode 100644
index 00000000000..c0766988171
--- /dev/null
+++ b/misc/kdrill/patches/patch-ac
@@ -0,0 +1,42 @@
+$NetBSD: patch-ac,v 1.1 2010/01/09 12:03:04 obache Exp $
+
+Avoid to conflict with getline(3) defined in IEEE Std 1003.1-2008.
+
+--- readfile.c.orig 2001-08-30 22:27:37.000000000 +0000
++++ readfile.c
+@@ -31,7 +31,7 @@ int numberofkanji=0, highestkanji=0, low
+ static char *dictname=NULL;
+ static char *edictname=NULL;
+
+-/* getline:
++/* get_line:
+ * reads a line (from dictionary).
+ * Deals with 8-bit char reads (or attempts to)
+ * Also attempts to deal with the problem of variable line length.
+@@ -50,7 +50,7 @@ static char *edictname=NULL;
+ * if we have just started reading a stream;
+ */
+
+-int getline(FILE *fp,unsigned char *s)
++int get_line(FILE *fp,unsigned char *s)
+ {
+ char * val;
+ char *endparse;
+@@ -451,7 +451,7 @@ void readedict()
+ lowestkanji = nextindex;
+ }
+
+- while(getline(fp, instring) != 0)
++ while(get_line(fp, instring) != 0)
+ {
+ int instrlen;
+
+@@ -653,7 +653,7 @@ void readstructs(){
+ exit(-1);
+ }
+
+- while (getline(fp,instring) != 0) {
++ while (get_line(fp,instring) != 0) {
+ int Kanji;
+ int freq,grade,N,U,H,Q,SKIP;
+ unsigned char *parse;