Thu Sep 29 18:20:13 2011 UTC ()
Fix build on NetBSD-current by renaming getline() to get_line().


(wiz)
diff -r1.2 -r1.3 pkgsrc/converters/ja-dvi2tty/distinfo
diff -r0 -r1.1 pkgsrc/converters/ja-dvi2tty/patches/patch-dvistuff.c

cvs diff -r1.2 -r1.3 pkgsrc/converters/ja-dvi2tty/distinfo (expand / switch to unified diff)

--- pkgsrc/converters/ja-dvi2tty/distinfo 2005/02/23 16:12:34 1.2
+++ pkgsrc/converters/ja-dvi2tty/distinfo 2011/09/29 18:20:13 1.3
@@ -1,11 +1,12 @@ @@ -1,11 +1,12 @@
1$NetBSD: distinfo,v 1.2 2005/02/23 16:12:34 agc Exp $ 1$NetBSD: distinfo,v 1.3 2011/09/29 18:20:13 wiz Exp $
2 2
3SHA1 (ja-dvi2tty/dvi2tty5.0.tar.gz) = c7476e80626736dc9575fcd9ed25c705bce2addc 3SHA1 (ja-dvi2tty/dvi2tty5.0.tar.gz) = c7476e80626736dc9575fcd9ed25c705bce2addc
4RMD160 (ja-dvi2tty/dvi2tty5.0.tar.gz) = 0f1af2eec8f2d5134c1c5345f8dfb32aeeb0f571 4RMD160 (ja-dvi2tty/dvi2tty5.0.tar.gz) = 0f1af2eec8f2d5134c1c5345f8dfb32aeeb0f571
5Size (ja-dvi2tty/dvi2tty5.0.tar.gz) = 29087 bytes 5Size (ja-dvi2tty/dvi2tty5.0.tar.gz) = 29087 bytes
6SHA1 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = c36516446b6661b1e7052e539bf2297161908463 6SHA1 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = c36516446b6661b1e7052e539bf2297161908463
7RMD160 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 980df6117812e9d6be8fee0c96ef63ee44732772 7RMD160 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 980df6117812e9d6be8fee0c96ef63ee44732772
8Size (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 10270 bytes 8Size (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 10270 bytes
9SHA1 (ja-dvi2tty/dvi2tty.c-patch) = a7c54cccc98dacc8d699f63ae99755d8e9e1b871 9SHA1 (ja-dvi2tty/dvi2tty.c-patch) = a7c54cccc98dacc8d699f63ae99755d8e9e1b871
10RMD160 (ja-dvi2tty/dvi2tty.c-patch) = 6fa7f746347d515a80d51494d2e679d810d6c3dc 10RMD160 (ja-dvi2tty/dvi2tty.c-patch) = 6fa7f746347d515a80d51494d2e679d810d6c3dc
11Size (ja-dvi2tty/dvi2tty.c-patch) = 898 bytes 11Size (ja-dvi2tty/dvi2tty.c-patch) = 898 bytes
 12SHA1 (patch-dvistuff.c) = 5c4a98380f569a7a96f2969ab84ff6dbace11370

File Added: pkgsrc/converters/ja-dvi2tty/patches/patch-dvistuff.c
$NetBSD: patch-dvistuff.c,v 1.1 2011/09/29 18:20:13 wiz Exp $

Fix conflict with POSIX getline().

--- dvistuff.c.orig	2011-09-29 18:17:16.000000000 +0000
+++ dvistuff.c
@@ -162,7 +162,7 @@ void            rule            (bool, l
 void            ruleaux         (long, long, char);
 long            horizontalmove  (long);
 int             skipnops        (void);
-linetype    *   getline         (void);
+linetype    *   get_line         (void);
 linetype    *   findline        (void);
 unsigned long   num             (int);
 long            snum            (int);
@@ -188,7 +188,7 @@ void            rule            ();
 void            ruleaux         ();
 long            horizontalmove  ();
 int             skipnops        ();
-linetype    *   getline         ();
+linetype    *   get_line         ();
 linetype    *   findline        ();
 unsigned long   num             ();
 long            snum            ();
@@ -347,7 +347,7 @@ void initpage()
     h = 0L;  v = 0L;                        /* initialize coordinates   */
     x = 0L;  w = 0L;  y = 0L;  z = 0L;      /* initialize amounts       */
     sptr = 0;                               /* initialize stack         */
-    currentline = getline();                /* initialize list of lines */
+    currentline = get_line();                /* initialize list of lines */
     currentline->vv = 0L;
     firstline   = currentline;
     lastline    = currentline;
@@ -810,7 +810,7 @@ int skipnops()
  * GETLINE -- Returns an initialized line-object 
  */
 
-linetype *getline()
+linetype *get_line()
 {
     register int  i;
     register linetype *temp;
@@ -826,7 +826,7 @@ linetype *getline()
 
     return temp;
 
-} /* getline */
+} /* get_line */
 
 
 
@@ -842,7 +842,7 @@ linetype *findline()
 
     if (v <= firstline->vv) {                      /* above first line */
         if (firstline->vv - v > lineheight) {
-            temp = getline();
+            temp = get_line();
             temp->next = firstline;
             firstline->prev = temp;
             temp->vv = v;
@@ -853,7 +853,7 @@ linetype *findline()
 
     if (v >= lastline->vv) {                       /* below last line */
         if (v - lastline->vv > lineheight) {
-            temp = getline();
+            temp = get_line();
             temp->prev = lastline;
             lastline->next = temp;
             temp->vv = v;
@@ -876,7 +876,7 @@ linetype *findline()
             return temp->next;
 
     /* no line fits suitable, generate a new one */
-    currentline = getline();
+    currentline = get_line();
     currentline->next = temp->next;
     currentline->prev = temp;
     temp->next->prev = currentline;