* added graalvm (22.0.0.1) - A high-performance JDK distribution
[t2.git] / package / textproc / tetex / hotfix-glibc.patch
blobc2bea028209653ed44bb43b390c05703eca53162
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../tetex/glibc.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -Nur tetex-src-3.0-orig/texk/dvipsk/afm2tfm.c tetex-src-3.0/texk/dvipsk/afm2tfm.c
18 --- tetex-src-3.0-orig/texk/dvipsk/afm2tfm.c 2009-08-22 00:54:14.000000000 +0000
19 +++ tetex-src-3.0/texk/dvipsk/afm2tfm.c 2009-08-22 01:14:07.000000000 +0000
20 @@ -257,7 +257,7 @@
23 int
24 -getline P1H(void) {
25 +getLine P1H(void) {
26 register char *p ;
27 register int c ;
29 @@ -606,7 +606,7 @@
30 ai = newchar() ;
31 ai->adobenum = -1 ;
32 ai->adobename = "||" ; /* boundary character name */
33 - while (getline()) {
34 + while (getLine()) {
35 switch(interest(paramstring())) {
36 case FontName:
37 fontname = paramnewstring() ;
38 @@ -1882,7 +1882,7 @@
40 while (1) {
41 while (param == 0 || *param == 0) {
42 - if (getline() == 0)
43 + if (getLine() == 0)
44 error("! premature end in encoding file") ;
45 for (p=buffer; *p; p++)
46 if (*p == '%') {
47 @@ -1973,7 +1973,7 @@
48 p = gettoken() ;
49 if (strcmp(p, "]"))
50 error("! token 258 in encoding must be make-array (])") ;
51 - while (getline()) {
52 + while (getLine()) {
53 for (p=buffer; *p; p++)
54 if (*p == '%') {
55 if (ignoreligkern == 0)
56 diff -Nur tetex-src-3.0-orig/texk/web2c/cpascal.h tetex-src-3.0/texk/web2c/cpascal.h
57 --- tetex-src-3.0-orig/texk/web2c/cpascal.h 2009-08-22 00:54:14.000000000 +0000
58 +++ tetex-src-3.0/texk/web2c/cpascal.h 2009-08-22 01:12:32.000000000 +0000
59 @@ -241,6 +241,12 @@
60 #define getname vms_getname
61 #endif
64 +#ifdef getline
65 +#undef getline
66 +#endif
67 +#define getline web2c_getline
69 /* Declarations for the routines we provide ourselves in lib/. */
71 extern string basenamechangesuffix P3H(const_string,const_string,const_string);